Running C:/Users/crewd/Documents/UnrealEngine-release/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“C:/Users/crewd/Documents/Unreal Projects/Game/Game.uproject” -game -engine -progress
Discovering modules, targets and source code for project…
While compiling C:\Users\crewd\Documents\Unreal Projects\Game\Intermediate\Build\BuildRules\GameModuleRules.dll:
ERROR: c:\Users\crewd\Documents\Unreal Projects\Game\Intermediate\Source\Game.Target.cs(6,14) : error CS0101: ???࠭?⢮ ??? “” 㦥 ᮤ?ন? ??।??? ??? “GameTarget”
ERROR: UnrealBuildTool Exception: Unable to compile source files.
Seems simple, it can’t compile your source code, perhaps you have a error in your code.
Not sure why the error message is garbled – is VS set for a language other than English?
CS0101 is telling you that there is more than one identifier named “GameTarget”. It looks like your target files are not set up correctly.
It says it’s on line 6 of GameTarget.cs, so maybe you can figure it out by looking there.
Hey, could you share your Game.Target.cs file ? that would definitly help to see the error !
Is it a new project ? or an old that just got broken ?
i see 2 things :
- i don’t have the “setupGlobalEnvironment” method on my side ( but that probably not the problem )
- your game is called “Game” an thus it conflict with internals of UE as probably GameTarget class already exist, the class name is generated as “MyProjectTarget”
so if it’s a new project, make a new one with an other name to try !
You probably shouldn’t name your project “Game”. There are a lot of things that it may confuse. Please try doing exactly the same project but with a better name – even “MyGame” would work but you might want something more fitting to your project. Either way, use something less generic and see if it compiles. Note: renaming files won’t work, you have to make a new project to get a new name.