title: Configuring a build file for a .NET solution to be used by Jenkins
body: <p>I am trying to configure a .build file for a solution which will be built by Jenkins.
  The solutions builds properly but Jenkins takes forever to create an installer for the same.
  Here is the file currently in use:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;project name="SampleApp" default="Install"      xmlns="http://nant.sf.net/schemas/nant.xsd" &gt;
  &lt;property name="basename" value="SampleApp"/&gt;
  &lt;property name ="jenkinshome" value ="C:\Program Files\Jenkins\jobs\" /&gt;
  &lt;property name="OutputPath" value="bin/Release"/&gt;
  &lt;property name="Release" value="true"/&gt;
  &lt;property name="SampleApp.exe.config" value="Release" /&gt;
  &lt;property name="SolutionFileName" value = "SampleApp.sln" /&gt;
  &lt;property name="TargetFramework" value="${framework::get-target-framework()}" /&gt;
  &lt;target name="clean"&gt;
  &lt;delete&gt;
    &lt;fileset&gt;
      &lt;include name="${OutputPath}/${basename}.exe"/&gt;
      &lt;include name="${OutputPath}/${basename}.pdb"/&gt;
    &lt;/fileset&gt;
   &lt;/delete&gt;
  &lt;/target&gt;
  
  &lt;target name="build" &gt;
  &lt;mkdir dir="${OutputPath}" /&gt;
  &lt;echo message= "${framework::get-assembly-directory(TargetFramework)}" /&gt;
  &lt;exec program="C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe"
            commandline=''
              workingdir="." /&gt;
  &lt;/target&gt;
  
  &lt;target name ="Install" depends="build"&gt;
  &lt;exec program="C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"&gt;
    &lt;arg value ="C:\Program Files\Jenkins\jobs\Legacy Data         Adapter\workspace\SampleApp\SampleApp.vdproj /rebuild Release"&gt;
    &lt;/arg&gt;
  &lt;/exec&gt;
  
  &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>I am new to Jenkins and the whole concept of CI.
  Appreciate any help/suggestions.</p>