CruiseControl.NET,Nant 真的有必要吗?
我正在尝试为 CI 设置 CruiseControl.NET。我无法找到用于设置文件系统观察器来启动解决方案文件构建的参考和示例。我遇到的一个问题是我发现使用 Nant 的示例需要设置构建脚本。与 Nant 一起玩表明您可以使用 msbuild 构建 sln 文件,这让我想知道,Nant 的意义何在?
我是否需要 Nant,或者我可以设置 CCNET 并让它使用 msbuild 构建解决方案文件吗?如果我要添加单元测试和静态分析等其他工具,是否需要 Nant?
I'm trying to setup CruiseControl.NET for CI. I am having trouble finding references and examples for setting up just a file system watcher to kick off a build of a solution file. An issue I'm having are the examples I do find use Nant which requires setting up a build script. Playing with Nant shows that you can use msbuild to build sln files which makes me wonder, what is the point of Nant then?
Do I need Nant or can I setup CCNET and have it use msbuild to build a solution file? Is Nant required if I'm going to add in unit testing and other tools like static analysis?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
仅当您想使用 Nant 时才需要 Nant。 :)
您可以使用 cc.net 构建基于 msbuild/solution 的构建。
Nant is only required if you want to use Nant. :)
You can use cc.net to build msbuild/solution based builds.
南特是安特的港口。在 MSBuild 不像今天那么强大和灵活的时代,它非常有用。我们使用 CruiseControl 仅使用 MSBuild,根本不使用 NAnt。所以我猜你的例子有点过时了。
Nant is a port of Ant. It was quite useful in times when MSBuild was not as powerful and flexible as today. We are using CruiseControl using MSBuild only and no NAnt at all. So I would guess your examples are just somewhat outdated.
Nant 为构建中发生的事情提供了最高的灵活性和精细的控制。
Nant provides supreme flexibility and fine grain control over what goes on in a build.
NANT 是一个非常灵活的应用程序,在使用 Cruisecontrol.net 时提供了很好的帮助。
您仍然可以使用 MSBUILD(如果您不打算与其他项目分开构建 MSI 文件)或 devenv.com(如果您计划与其他项目分开构建 MSI 文件)来构建您的项目/解决方案。然后您可以使用 NUNIT 执行单元测试。这个可以单独安装。
NANT is very much flexible application and provide good help when using cruisecontrol.net.
You can still use MSBUILD (If you don't plan to build MSI files apart from other projects) or devenv.com (if you plan to build MSI files apart from other projects) to build your project / solution . Afterwards you can use NUNIT to perform your unit testing . This can be installed separately.