使用.NET 4.0 RC恶性MSBuild任务 [英] Nant msbuild task with .net 4.0 rc
问题描述
我如何需要告诉我的恶性脚本的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?
推荐答案
我觉得最新的楠/ 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任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!