Nant msbuild 任务与 .net 4.0 rc [英] Nant msbuild task with .net 4.0 rc

查看:19
本文介绍了Nant msbuild 任务与 .net 4.0 rc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的 nant 脚本中向 msbuild 任务表明它应该使用 .net 4.0 rc?

How do I need to indicate to the msbuild task in my nant script that it should use .net 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆