task or msbuild.exe with NAnt?

The NAntContrib assumes .NET Framework V2.0. If you want to use .NET 3.5, you’ll need to call MsBuild.exe directly. As you upgrade to new versions of .NET, you need only modify the MSBuildPath property. Here’s an example: <property name=”MSBuildPath” value=”C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe”/> <target name=”build”> <exec program=”${MSBuildPath}”> <arg line=””${SolutionFile}”” /> <arg line=”/property:Configuration=${SolutionConfiguration}” /> <arg value=”/target:Rebuild” /> <arg value=”/verbosity:normal” … Read more