使用 .net 3.5 MSBuild 和 NantContrib 运行构建
我注意到最初在 VS 2008 中创建的项目不使用 nantcontrib msbuild 任务进行编译。 我在此处看到了一个解决方案,但看起来像考虑到“MSBuildBinPath”已被废弃,我不太喜欢在 VS 2008 中创建的每个项目文件上更改此属性的想法。
缺少更改构建脚本以通过 exec 调用 msbuild任务,有没有办法将 msbuild 任务指向特定版本的 MSBuild? 也许这是 Nant 下一版本的开发工作?
I noticed that projects that were originally created in VS 2008 do not compile using the nantcontrib msbuild task. There is a solution that I've seen here but it seems like a bit of a hack, considering 'MSBuildBinPath' has been depricated, and I don't exactly like the idea of changing this property on every single project file that I create in VS 2008.
Short of changing build scripts to call msbuild through an exec task, is there any way to point the msbuild task at a particular version of MSBuild? Perhaps this is in the works for the next release of Nant?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
还有另一种选择,直接调用 MsBuild.exe。
下面是一个示例:
如果您从 Cruise Control .NET 调用 Nant,您还可以添加以下参数:
There is another option, calling MsBuild.exe directly.
Here's an example:
If you're calling Nant from Cruise Control .NET, you can also add this argument:
使用 此 hack 或升级到 nant 0.86 beta-1 或更高版本
Either use this hack or upgrade to nant 0.86 beta-1 or newer