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?
            Asked
            
        
        
            Active
            
        
            Viewed 1,310 times
        
    2 Answers
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
- 
                    Thanks Mitch, you saved me a lot of messing around. I am using .Net 4.0.21006 and it works fine. – Leo Moore Nov 03 '09 at 17:07
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
