D
danielh2412
Guest
Hi,
I have a upgrade a VS2013 Solution to VS2017. Now, I'm unable to compile a project of this solution with msbuild commandline. Building it in VisualStudio 2017 works fine. Thee error message when using msbuild is:
msbuild fatal error C1083: Cannot open precompiled header file pch
The project is set to "Use precompiled header", the stdafx.cpp file includes the stdafx.h and the settings for stdafx.cpp is "Create precompiled header file". I don't know whats the problem, because compiling the projects from VisualStudio works fine. Also compiling the solution with msbuild before updating to VS2017 works like expected.
And now the funny thing: msbuild does not always crahs, it is a sporadic error. Is there a problem with parallel compiling or something else?
Continue reading...
I have a upgrade a VS2013 Solution to VS2017. Now, I'm unable to compile a project of this solution with msbuild commandline. Building it in VisualStudio 2017 works fine. Thee error message when using msbuild is:
msbuild fatal error C1083: Cannot open precompiled header file pch
The project is set to "Use precompiled header", the stdafx.cpp file includes the stdafx.h and the settings for stdafx.cpp is "Create precompiled header file". I don't know whats the problem, because compiling the projects from VisualStudio works fine. Also compiling the solution with msbuild before updating to VS2017 works like expected.
And now the funny thing: msbuild does not always crahs, it is a sporadic error. Is there a problem with parallel compiling or something else?
Continue reading...