title: Why is Nant not working with TeamCity?
body: <p>I have nant set up to build my ASP.NET MVC project and it works fine locally.  I add nant to a tools folder and add it to version control.  TeamCity picks up my changes and starts the build but it fails.</p>
  
  <p>I believe I'm using the latest version of Nant and I have added the .net framework 3.5 to the nant.exe.config.  What am I missing on the server and yes the .net framework is installed on the server as the asp.net mvc app does work if I manually build and deploy there?  </p>
  
  <p>The build file is as follows:
  
  
      
      </p>
  
  <pre><code>&lt;target name="compile" description="Compiles using the AutomatedDebug Configuration"&gt;
      &lt;msbuild project="Tolt.Sims.sln" /&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is the error:</p>
  
  <pre>
  BUILD FAILED Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target framework.
  Property evaluation failed. Expression: ${path::combine(sdkInstallRoot, 'bin')} ^^^^^^^^^^^^^^ Property 'sdkInstallRoot' has not been set.
  For more information regarding the cause of the build failure, run the build again in debug mode. Try 'nant -help' for more information
  </pre>