It looks like there are (at least) two options for getting nant to use csproj files: using the task of NAntContrib or using msbuild.exe directly (e.g., codecampserver). Am I reading this right, and if so, what is the advantage of using msbuild.exe over the NAntContrib task?
Share
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:
The value
MSBuildPathfor different versions of .NET areC:\Windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exeC:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exeC:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exeFor a 32-bit build, change
Framework64toFrameworkUpdate
Following up on some of the comments, the
valueattribute is used for parameters that have no white space characters where aslineis used for parameters that contain white spaces. Otherwise, the NAnt would use the space as an end of input.