title: Compiling using MSBuild 12.0 from Microsoft Visual Studio 2015
body: <p>I have a solution that was compiled with MSVC 12.0 Visual Studio 2013 (C++/CLI and C#) but only have Visual Studio 2015 (Community).  I want to build the project using MSVC 12.0 as it was intended, as I only need to rebuild 1 part of the solution (of 5) for my purpose and want it to be compatible with the other DLLs.  When trying to build it from MSVC 14.0 (Visual Studio 2015) it says:</p>
  
  <p><code>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v120 (Platform Toolset = 'v120') cannot be found.</code></p>
  
  <p>Of course I installed the MS Build tools for 2013 (MSVC 12.0, v120) from here: <a href="https://www.microsoft.com/en-us/download/details.aspx?id=40760" rel="nofollow noreferrer">https://www.microsoft.com/en-us/download/details.aspx?id=40760</a> as well as the Microsoft Visual C++ Redistributable 2013 package.</p>
  
  <p>And the right directory for the 12.0 build tools install is <code>C:\Program Files (x86)\MSBuild\12.0\Bin\amd64</code></p>
  
  <p>It looks like a configuration error on the solution (or in Visual Studio in general) since it is looking for the build tools in the wrong directory.  Does anyone know what settings I need to change / add in Visual Studio to get it to compile with MSBuild 12.0 instead of 14.0?  I'd prefer not to install Visual Studio 2013 since I don't use it for anything else (just want to have the option to use VS 2013 MSBUILD within VS 2015 as needed).</p>