


However, this approach is not very convenient in case the path is different. If I specify the variable VCTargetsPath before the build (with the value C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120), the problem is solved. Confirm that the path in the declaration is correct, and that the file exists on disk.Īs I understand, the problem is that the variable VCTargetsPath doesn’t get evaluated. Upon the attempt to build it with MSBuild 14.0 I get an error MSB4019: The imported project "C:\" was not found. This project gets successfully built using MSBuild 12.0.

I have Visual Studio 2013 and Microsoft Build Tools 2015 installed. The project file has the following properties: I have a project created in Visual Studio, 2013.
