Nant msbuild task with .net 4.0 rc

How do I indicate for the msbuild task in my nant script that it should use .net 4.0 rc?

+5
source share
2 answers

I think the last NAnt / NAntContrib uses .NET 3.5 by default, so you have to change it to 4.0. To handle this property, there is the NAnt ( <property name="nant.settings.currentframework" value="net-4.0" />) property , which should be located at the top of the NAnt assembly file.

Then you need to go into your NAnt configuration file and add 4.0 node so that NAnt (and with the extension NantContrib) knows about the new CLR version.

+4
source

- , MSBuild. doco, , , script, , script.

- exec. .

EDIT: MSBuild. MSBuild.

2.0:% windir%\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
3.5:% windir%\Microsoft.NET\Framework\v3.5\MSBuild.exe
4.0b2:% windir%\Microsoft.NET\Framework\v4.0.21006\MSBuild.exe

+1

All Articles