compile projects with nant

compiling c# projects in visual studio is kinda easy… in nant it sould be to… after trying to build the whole solution, and reading the manual properly, <solution> can only be used with visual studio version 2002 and 2003… crap…

okt tryed it with <exec> and msbuild.exe… works 🙂 but then i figured outm that nant CAN compile projects… so back to the <solution>

<solution configuration=”debug”>
    <projects>
        <include name=”project.csproj” />
    </projects>
</solution> 

so this call opens the project.csprojfile and executes it… but normaly it throws an exception… this link provides the answer… just change the $(MSBuildToolsPath) to $(MSBuildBinPath)

so compiling projects with nant is easy 🙂

Comments are closed.