title: Going from <solution> to <exec program=msbuild> in NAnt
body: <p>I've converted my app from .NET 1.1 to .NET 3.5 and unfortunately NAnt's  tag does not support .NET 3.5.  So I am trying to use the  tag to kick off msbuild directly.  </p>
  
  <p>Here is what I have for .NET 1.1:</p>
  
  <pre><code>&lt;solution solutionfile="MyApp.sln" 
          configuration="ServerDebug" outputdir="MyApp\bin\ServerDebug"&gt;
  
               &lt;assemblyfolders&gt;
                     &lt;include name="Dependencies\Libs\bin\ServerDebug"/&gt;
               &lt;/assemblyfolders&gt;
  &lt;/solution&gt;
  </code></pre>
  
  <p>I converted it to </p>
  
  <pre><code>&lt;exec program="msbuild"&gt;
      &lt;arg value="MyApp.sln /p:Configuration=ServerDebug;OutDir=bin\ServerDebug\" /&gt;
  &lt;/exec&gt;
  </code></pre>
  
  <p>So everything is working fine, except that I can't figure out how to replicate the really convinient  tag, which gives the compiler a hint as to where to look for dependecies.  </p>
  
  <p>What do i pass to msbuild to replicate the  functionality?</p>