如何在我的 nant 脚本中向 msbuild 任务表明它应该使用 4.0 rc?
How do I need to indicate to the msbuild task in my nant script that it should use 4.0 rc?
推荐答案我认为最新的 NAnt/NAntContrib 默认为 .NET 3.5,因此您必须将其更改为 4.0.有一个 NAnt 属性来处理它(<property name="nant.settings.currentframework" value="net-4.0"/>),它应该靠近您的 NAnt 构建的顶部文件.
I think the latest NAnt/NAntContrib defaults to .NET 3.5, so you'll have to change that to 4.0. There is a NAnt property to handle that (<property name="nant.settings.currentframework" value="net-4.0" />), which should go near the top of your NAnt build file.
接下来,您需要进入 NAnt 的配置文件并添加 4.0 节点,以便 NAnt(以及扩展名为 NantContrib)知道新的 CLR 版本.
Next, you'll need to go into your NAnt's configuration file and add the 4.0 node, so that NAnt (and by extension NantContrib) are aware of the new CLR version.
更多推荐
Nant msbuild 任务与 .net 4.0 rc
发布评论