The project could not be compiled. Would you like to open it in Visual Studio?

I just tried to make a C++ project for the first time, (I used Blueprints before) and I get this error every time i try and make a project.

The project could not be compiled. Would you like to open it in Visual Studio?

Running C:/Program Files (x86)/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe Whitetail2 Development Win64 -project="C:/Users//Documents/Unreal Projects/Whitetail2/Whitetail2.uproject" -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE -2015
@progress push 5%
Parsing headers for Whitetail2Editor
  Running UnrealHeaderTool "C:\Users\\Documents\Unreal Projects\Whitetail2\Whitetail2.uproject" "C:\Users\\Documents\Unreal Projects\Whitetail2\Intermediate\Build\Win64\Whitetail2Editor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for Whitetail2Editor in 2.5530311 seconds
@progress pop
Performing 7 actions (4 in parallel)
[2/7] Resource PCLaunch.rc
[3/7] Resource ModuleVersionResource.rc.inl
PCH.Whitetail2.h.cpp
Whitetail2.cpp
Whitetail2.generated.cpp
Whitetail2GameMode.cpp
C:\Users\\Documents\Unreal Projects\Whitetail2\Intermediate\Build\Win64\UE4Editor\Inc\Whitetail2\Whitetail2.generated.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 248 does not match precompiled header
C:\Users\\Documents\Unreal Projects\Whitetail2\Source\Whitetail2\Whitetail2.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 248 does not match precompiled header
C:\Users\\Documents\Unreal Projects\Whitetail2\Source\Whitetail2\Whitetail2GameMode.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 248 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\\Documents\Unreal Projects\Whitetail2\Binaries\Win64\UE4Editor-Whitetail2.dll
Total build time: 32.24 seconds

Any Ideas?

This seems to be related to VS update, you not first reporting this

Problem is in compatibility of Unreal Engine with a newest Visual Studio update.
Best solution so far is to reinstall VS without update:

As far as I know, now you can’t solve this problem in any other way without modifying engine’s sources.

BUT that is a worst solution ever! For instance, I personally can’t modify my working computer’s software cause it simply doesn’t belongs to me. And I don’t want to - it’s our admin’s duty. Beside’s that may crush some other project. Really hope, that engine authors, will do us a favor, and will make engine update a little faster!

UPDATE: Problem has been solved: 4.12.5 Hotfix Released - Announcements - Epic Developer Community Forums
Just update your engine.

Thank you, I have updated and works fine now I never had to try the version without the update, I did however try 2013 version and that did not work. But with their hotfix all is well. Thank you :slight_smile: