3

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?

skolima
  • 31,963
  • 27
  • 115
  • 151
  • Duplicate - http://stackoverflow.com/questions/1215731/building-net-4-projects-with-nant - although it's a later question it has an accepted answer – ChrisF Jan 20 '10 at 12:39

2 Answers2

4

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
  • 295,962
  • 43
  • 465
  • 541
2

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

Eugene Petrenko
  • 4,874
  • 27
  • 36