tags:

views:

581

answers:

2

I want to start testing my project using the Microsoft .Net 4.0 Beta version that has already been released. I know that adding a "net-4.0" target framework to NAnt requires updating nant.exe.config file, does anyone know what are the necessary changes?

+4  A: 

If you want to use nant to build projects targeting .NET 4.0 you'll have to modify NAnt.exe.config and add the net-4.0 target framework and add a <supportedRuntime ... /> line to the <startup> section.

Mitch Wheat
Thanks Mitch, you saved me a lot of messing around. I am using .Net 4.0.21006 and it works fine.
Leo Moore
+2  A: 

http://paigecsharp.blogspot.com/2009/08/nant-net-framework-40-configuration.html is a full code for .config file for NAnt.

Eugene Petrenko