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

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2021-10-22
  • 2022-12-23
  • 2021-07-30
  • 2021-11-17
  • 2021-04-26
  • 2021-06-12
猜你喜欢
  • 2021-06-02
  • 2021-12-22
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2022-01-11
相关资源
相似解决方案