使用.NET 4.0 RC恶性MSBuild任务

编程入门 行业动态 更新时间:2024-10-23 20:19:02
本文介绍了使用.NET 4.0 RC恶性MSBuild任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我如何需要告诉我的恶性脚本的MSBuild任务,它应该使用.NET 4.0 RC?

How do I need to indicate to the msbuild task in my nant script that it should use 4.0 rc?

推荐答案

我觉得最新的楠/ NAntContrib默认为.NET 3.5,所以你必须要改变这种状况到4.0。有南特属性来处理(<属性名=nant.settings.currentframework值=网4.0/> ),这应该去附近您楠构建文件的顶部。

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.

接下来,你需要进入你的南特的配置文件,并添加4.0点,让楠(通过扩展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.

更多推荐

使用.NET 4.0 RC恶性MSBuild任务

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

发布评论

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

>www.elefans.com

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