When trying to create a new empty C++ project, I get the following message.
“The project could not be compiled, would you like to open in Visual Studio?”
Running C:/Program Files/Epic Games/UE_5.4/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="D:/User/Game Design/Unreal/Projects/MyProject/MyProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="D:/User/Game Design/Unreal/Projects/MyProject/MyProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\user\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for MyProjectEditor (no existing makefile)
Total execution time: 0.83 secondsype or paste code here
If I try opening the project in UE again, I get the message:
“The following modules are missing or built with a different engine version: MyProject
Would you like to rebuild them now?”
If I select yes, I get the message “MyProject could not be compiled. Try rebuilding from source manually.”
I’ve tried rebuilding the project from VS code and get the error message MSB3073
The command ""C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat" MyProjectEditor Win64 Development -Project="D:\User\Game Design\Unreal\Projects\MyProject\MyProject.uproject" -WaitMutex -FromMsBuild -architecture=x64" exited with code 6. MyProject C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets Line 44
Line 44 is
<Exec Command="$(NMakeBuildCommandLine)" Condition="'$(NMakeUseOemCodePage)' == 'true' and '$(NMakeBuildCommandLine)'!=''"/>