Going from to in NAnt

后端 未结 3 662
慢半拍i
慢半拍i 2021-01-07 06:49

I\'ve converted my app from .NET 1.1 to .NET 3.5 and unfortunately NAnt\'s tag does not support .NET 3.5. So I am trying to use the tag to kick off msbuild directly.

3条回答
  •  一向
    一向 (楼主)
    2021-01-07 07:20

    For what it's worth, I was able to get NAnt 0.86 working with .NET 3.5 by adding the following to NAnt.exe.config. After doing so, this bit in my build file inside the project tag was all I needed.

    
    

    Added to NAnt.exe.config:

    
        
            
                
                
                
                
            
            
                
                    
                        
                    
                
            
        
        
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
        
        
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
        
        
            
            
            
            
            
            
            
            
            
            
            
        
        
            
            
            
            
            
            
            
            
            
            
        
        
            
            
            
        
        
            
            
            
            The Framework directory for .NET 3.5 does not exist.
            
            The Reference Assemblies directory for .NET 3.5 does not exist.
        
        
            
                ${path::combine(frameworkDirectoryV35,'csc.exe')}
                true
                true
                true
                true
                true
                true
                true
            
            
                ${path::combine(frameworkDirectoryV35,'vbc.exe')}
                true
                true
                true
                true
                true
                true
                true
                true
            
            
                true
            
            
                true
                true
                true
                true
            
            
                true
                true
            
            
                ${path::combine(sdkInstallRoot, 'bin/al.exe')}
            
            
                sn
            
            
                lc
                true
            
        
    
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题