Nant msbuild 任务与 .net 4.0 rc

编程入门 行业动态 更新时间:2024-10-23 18:35:30
本文介绍了Nant msbuild 任务与 4.0 rc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在我的 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

本文发布于:2023-11-10 09:39:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1575024.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:msbuild   Nant   net   rc

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!