0
I am trying to build some projects with some msbuild and I get an msb4019 error saying stuff like "The imported project "C:\Prog ram Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Default.props" was not found".
All solutions I have seen mention changing some registry entries and environmental variables having to do with C:\Program Files (x86)\MSBuild\Microsoft.Cpp\, however, this folder simply does not exist for me. I have visual studio professional 2017.
It does not appear you have all the required components required to compile a Visual C++ project installed. This is due to your
– Ramhound – 2019-03-25T13:53:33.447VCTargetsPath
path variable being incorrect. You might try to simply reinstall theVisual C++ Windows Build Tools
. Since there are several different solutions this might be helpful. Seems strange the error is for an entirely different version of Visual Studio then you have installed. (VS2017 isn't V120)Possible duplicate of Visual Studio 2015 Community - Create new project window keeps popping up
– Ramhound – 2019-03-25T13:55:20.957I tried reinstalling the build tools and it did not fix the problem. Also I don't see how my question relates to the link you posted. As I said my problem is that the Microsoft.cpp folder does not exist on my machine – mython paster – 2019-03-25T15:14:16.883
The Stack Overflow question is duplicate of this question, but Stack Overflow questions cannot be used as a duplicate candidate, so I picked a possible duplicate that indicates you need to set
VCTargetsPath
to the correct value. – Ramhound – 2019-03-25T16:05:28.407setting the env variable did not help, the variable is referencing a directory that doesn't exist on my computer, I added in a picture of how my msbuild folder looks – mython paster – 2019-03-25T17:22:41.633
1It does not exist because it does not appear you have installed the
Visual C++ Windows Build Tools
– Ramhound – 2019-03-25T19:31:52.000