title: Override target framework from command line
body: <p>I want to build a <code>c#</code> project(.csproj) from commandline using <code>msbuild</code> and want to target .Net2.0 runtime.</p>
  
  <p>I see that the project xml file has <code>2 tags</code> of interest</p>
  
  <pre><code>&lt;Project ToolsVersion="4.0" ... 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;TargetFrameworkVersion&gt;v2.0&lt;/TargetFrameworkVersion&gt;
  </code></pre>
  
  <p>I was wondering if</p>
  
  <ul>
  <li>Can ToolsVersion 4.0 produce compatible code for .Net2.0 runtime?</li>
  <li>Can I override the target framework tag from the project file via the command line (does the <code>/ToolsVersion</code> command line switch achieve this?</li>
  </ul>
  
  <p>I specifically want to achieve this via command line and not modify the project file.</p>
  
  <p>Currently I am doing something like this</p>
  
  <pre><code>msbuild myproj.csproj /p:Configuration=Release
  </code></pre>