[Solved]UE5 5.0 GitHub Source Build Error: C2766, MSB3073

Solution of Error C2766 :

MassEntityTypes.cpp
Annotate the this script part

//DEFINE_TYPEBITSET(FMassFragmentBitSet);
//DEFINE_TYPEBITSET(FMassTagBitSet);
//DEFINE_TYPEBITSET(FMassChunkFragmentBitSet);
//DEFINE_TYPEBITSET(FMassSharedFragmentBitSet);


Solution of Error MSB3073 with code 6:

  1. Enter the modification in the Visual Studio Installer to download all msvc v142 build tools from individual components (ARM and x64/x86)
  2. Move the Unreal Engine source file to C:\
  3. Open the UE5.sln file to change it: “Project->Configuration Properties->General->OutputDirectory”, change the value to “inherit from parent or project defaults”
  4. Now try to build it

If the build fails, upgrade Visual Studio to 2022 and try the above process from scratch

2 Likes