title: How to use MSBuild to target v110 platform toolset?
body: <p>I am developing a command line application that creates a full Visual Studio 11 solution made of a single VC++ project and that tries to compile it in the end using MSBuild.</p>
  
  <p>The problem I am facing is strange. </p>
  
  <p>If I execute my command line program inside Visual Studio 11 it works; if I instead launch it outside the development environment it throws me the error:</p>
  
  <pre><code>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(511,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [f:\ABC.vcxproj]
  </code></pre>
  
  <p>The command I am using is the following:</p>
  
  <pre><code>C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe f:\snake\W9A30040.vcxproj /property:PlatformToolset=v110;Configuration=Debug /v:quiet
  </code></pre>
  
  <p>But I have the feeling that PlatformToolset=v110 is ignored and MSBuild use v100 (Visual Studio 2010).</p>
  
  <p>Do you have any suggestions how to tell MSBuild to compile for v110 Platform Toolset?</p>