我应该从nant切换到msbuild吗? [英] Should I switch from nant to msbuild?

查看:129
本文介绍了我应该从nant切换到msbuild吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用nant,ccnet(巡航控制),svn,mbunit.我使用msbuild进行sln构建只是因为它更易于安装.

I currently use nant, ccnet (cruise control), svn, mbunit. I use msbuild to do my sln build just because it was simpler to shell out.

将整个构建脚本切换到MSBuild有什么好处吗?我需要能够运行测试,watir样式测试,xcopy部署.这样容易吗?

Are there any merits to switching my whole build script to MSBuild? I need to be able to run tests, watir style tests, xcopy deploy. Is this easier?

更新:是否有任何引人入胜的功能会导致我从nant转换为msbuild?

推荐答案

我喜欢MSBuild.原因之一是.csproj文件是msbuild文件,而在VS中进行构建就像在命令行中进行构建一样.另一个原因是TeamCity的良好支持,这是我一直在使用的CI服务器.如果您开始使用MSBuild,并且想要在构建过程中做更多自定义操作,请获取 MSBuild社区任务 .他们给您带来许多不错的额外任务.我已经好几年没有使用NAnt了,我并不后悔.

I like MSBuild. One reason is that .csproj files are msbuild files, and building in VS is just like building at the command line. Another reason is the good support from TeamCity which is the CI server I've been using. If you start using MSBuild, and you want to do more custom things in your build process, get the MSBuild Community Tasks. They give you a bunch of nice extra tasks. I haven't used NAnt for several years now, and I haven't regretted it.

而且,正如鲁本提到的那样,CodePlex上还有 SDC任务任务.

Also, as Ruben mentions, there are the SDC Tasks tasks on CodePlex.

要获得更多乐趣,请在CodePlex上使用 MSBuild扩展包,其中包括一个twitter任务.

For even more fun, there is the MSBuild Extension Pack on CodePlex, which includes a twitter task.

这篇关于我应该从nant切换到msbuild吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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