Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I retarget a VS2017 solution in VS2015?

MSB8020 The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

I have been working on a project in VS2017 at home, but the school computer uses VS2015. How do I retarget my solution to an older version?

I have checked the Project menu and right-clicked on both the solution and the separate projects in the solution explorer, but there is no 'Retarget solution' option.

like image 526
Niklas Utterback Avatar asked Aug 14 '17 10:08

Niklas Utterback


People also ask

How do you retarget a solution?

Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". To resolve these errors, right-click on the solution node in Solution Explorer and click Retarget solution.


1 Answers

  1. Right click on the project in the Solution Explorer
  2. Click on "Properties"
  3. Navigate to "Configuration properties"
  4. Click on the "General" option below "Configuration properties"
  5. Change "Platform toolset" to Visual Studio 2015 (v140)
like image 182
Niklas Utterback Avatar answered Oct 28 '22 19:10

Niklas Utterback