c++ - Compiling using MSBuild 12.0 from Microsoft Visual Studio 2015 -


i have solution compiled msvc 12.0 visual studio 2013 (c++/cli , c#) have visual studio 2015 (community). want build project using msvc 12.0 intended, need rebuild 1 part of solution (of 5) purpose , want compatible other dlls. when trying build msvc 14.0 (visual studio 2015) says:

c:\program files (x86)\msbuild\microsoft.cpp\v4.0\v140\microsoft.cpp.platform.targets(57,5): error msb8020: build tools v120 (platform toolset = 'v120') cannot found.

of course installed ms build tools 2013 (msvc 12.0, v120) here: https://www.microsoft.com/en-us/download/details.aspx?id=40760 microsoft visual c++ redistributable 2013 package.

and right directory 12.0 build tools install c:\program files (x86)\msbuild\12.0\bin\amd64

it looks configuration error on solution (or in visual studio in general) since looking build tools in wrong directory. know settings need change / add in visual studio compile msbuild 12.0 instead of 14.0? i'd prefer not install visual studio 2013 since don't use else (just want have option use vs 2013 msbuild within vs 2015 needed).

if go top of .vcxproj change this

<project defaulttargets="build" toolsversion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 

then .sln can still open in visual studio 2015

visualstudioversion = 14.0.25420.1 

the reason because compiler version specified on project-by-project basis, , override solution version.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -