I try to compile a .NET 4.6 C# project on my build machine using only MSBuild. I did not install the Visual Studio 2015 on the machine, but just the following:
- .NET Framework 4.6 Runtime
- .NET Framework Targeting Pack
- Microsoft Build Tools 2015
I run following in the cmd: "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" MySolution.sln
The error I get is:
"error MSB4019: The imported project "C:\Microsoft.Cpp.Defaults.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk."
I have already checked that the "Microsoft.Cpp.Defaults.props" file exists in "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0", but not in the "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140". Actually even the folder "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140" does not exist.
What more should I do/install to compile this?