如何更改Nant编译的目标框架版本?
2010-07-09 10:08
337 查看
We just started on a .NET 2.0 project that I am currently creating all the NAnt build scripts for. Since we have a mixture of .NET 1.1 and .NET 2.0 projects I need to be able to change the compilers I am using on the fly. First I had to get a version of NAnt that supported the .NET 2.0 framework, so I grabbed a nightly from April 30, 2006. There are two options you can use to change the target framework. The first is a command line argument when executing the build file ([-t] framework):
nant -buildfile:test.Build -t:net-2.0
The other option is to set a property within your build file itself
<!-- Change Target Framework to .NET 2.0 -->
<property name="nant.settings.currentframework" value="net-2.0" />
原文:http://www.punkcoder.com/2006/05/change-target-framework-in-nant.html
nant -buildfile:test.Build -t:net-2.0
The other option is to set a property within your build file itself
<!-- Change Target Framework to .NET 2.0 -->
<property name="nant.settings.currentframework" value="net-2.0" />
原文:http://www.punkcoder.com/2006/05/change-target-framework-in-nant.html
相关文章推荐
- ASP.NET在IIS7中如何更改网站的.net framework框架版本
- Android studio如何更改gradle版本
- 在nant中改变编译的目标平台
- SBT 编译工程如何更改jar包的下载路径
- 如何查看Class文件编译的JDK版本 by UltraEdit
- 如何查看uburtu下编译过的android源码版本信息
- eclipse 如何配制项目编译JDK版本
- 如何增加2.0、3.5的目标框架在VS2010里面
- Mac如何更改maven的java版本
- 【Python笔记】源码编译安装Python时,如何支持自定义安装的高版本openssl库
- VC6.0如何编译生成Release或Debug版本?
- java.lang.OutOfMemoryError: Java heap space 如何更改tomcat7及以上版本内存设置
- 如何编译安装protobuf极其python版本
- 如何更改tomcat7及以上版本内存设置
- HOWTO:如何在代码中获取安装包目标机上的Windows Installer(MSI)版本
- quick-cocos2d-x如何在windows下编译安卓版本
- 如何编译Windows版本的GSL
- 如何在centos下更改默认版本的python
- CodeBlocks学习(五) 如何编译多个目标