title: How to launch correct version of Msbuild
body: <p>When I type...</p>
  
  <pre><code>Msbuild&lt;Enter&gt;
  </code></pre>
  
  <p>...at the command prompt, I get...</p>
  
  <pre><code>Microsoft (R) Build Engine Version 2.0.50727.4927
  [Microsoft .NET Framework, Version 2.0.50727.4927]
  Copyright (C) Microsoft Corporation 2005. All rights reserved.
  </code></pre>
  
  <p>This is all very well and good except that when I run this against a Visual Studio 2010 <code>.sln</code> file, the error message indicates: </p>
  
  <pre><code>MyProject.sln(2): Solution file error MSB5014: File format version is not recognized.  MSBuild can only read solution files between versions 7.0 and 9.0, inclusive.
  0 Warning(s)
  1 Error(s)
  </code></pre>
  
  <p>It would appear that the version of MSBuild that is being called, is not capable of understanding my solution file. </p>
  
  <p>I figured that I would check out my path and see where MSBuild is being picked up from. However, it seems that no part of my path points at a location where MSBuild is to be found.</p>
  
  <p>How is the command line finding the copy of MSBuild that it is using and how can I change this version so that the latest version is used?</p>