.NET 构建过程
我正在寻找最好的免费工具集,用于基于 MS 的构建过程。签出、构建、打包、测试、部署等。
我知道这个问题以前曾被问过,但那是两年多前的事了,在我们的世界里,这是一个永恒的问题。
我希望开发一种易于适应类似项目的模式。几乎就像一个模板/饼干切割系统。
我目前正在考虑使用 CruiseControl、Powershell、MSBuild 工具套件。
如果我们选择迁移到 4.0,会有问题吗?有更好的选择吗?局限性?或者说这些能满足我的需求吗?
我一直不满意的一点是包装过程。实际上,我们过去选择只使用 Visual Studio 部署项目,但这些项目非常*古老,我担心 WIX 对于实现它的人来说会太复杂。
All I am looking for the best free set of tools to be used in a MS Based build process. Checkout, Build, Package, Test, Deploy, etc.
I know this question has been asked before but it was over 2 years ago, and in our world that is an eternity.
I am looking to develop a pattern that is easily adapted to similar projects. Almost like a template/cookie cutter system.
I am currently looking into using CruiseControl, Powershell, MSBuild suite of tools.
If we choose to move to 4.0 will we have issues? Are there better alternatives? Limitations ? Or will these pretty much meet my needs.
One piece that i am never happy with is the process of packaging. We actually have opted in the past to just use Visual Studio Deployment Projects but those are very* ancient and my fear is WIX will be too complicated for the people implementing it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我听说 Cruisecontrol.net 很流行,但我没有时间处理配置构建所需的 XML 文件。我选择了 teamcity,如果您只有 20 个或更少的项目,它是免费的。。它非常容易设置,因为它有 vs2005 和 vs2008 构建运行程序,只需要解决方案文件即可构建。我还让 nunit、ncover 和 fxcop 运行起来,没有出现太多问题。它适用于所有主要的 VCS,但在某些情况下它无法自动标记(不过 SVN 也可以)。我无法评论自动部署,但我相信它可以做到。最好是这样,因为这是我清单上的下一个,我在选择持续集成解决方案时确实考虑过这一点。
I hear that cruisecontrol.net is popular, but I didn't have the time to deal with the XML files needed to configure the build. I opted for teamcity, which is free if you only have 20 projects or less. It is very easy to set up because it has vs2005 and vs2008 build runners that just need the solution file to build. I also got nunit, ncover, and fxcop running without too many problems. It works with all of the major VCSes, though in some cases it cannot label automatically (SVN is okay though). I cannot comment on auto deployment but I believe it can do it. It had better, because this is next on my list and I did think about this when choosing a continuous integration solution.
我的 TODO 列表中的一项是查看 Albacore,它提供了 .NET 任务Rake 实用程序。 Rake 使 Ruby 项目实现自动化的简单程度给我留下了深刻的印象。
One of the items on my TODO list is to look at Albacore, which provides .NET tasks for the Rake utility. I've been very impressed by how easy Rake makes automation for Ruby projects.
CruiseControl.Net
xml配置并不难,而且非常可配置。
如果您可以通过命令提示符编写某些内容(batch、powershell、nant、msbuild...),您可以通过 CCNet 运行它。我什至用它来部署 70 多台服务器。这涵盖数据库升级、clickonce 应用程序、wcf 服务、SQL Server 报告......
我什至让 CCNet 备份 SQL 服务器,因为发布者可以轻松报告失败/成功。
CruiseControl.Net
the xml configuration is not that hard, and very configurable.
if you can script something via a commandprompt(batch, powershell, nant, msbuild, ...) you can ran it via CCNet. I use it even for deployment on 70+ servers. And this covers database upgrades, clickonce applications, wcf services, SQL Server Reports, ....
I let CCNet even take backup's of the SQL servers, because the pulishers make it easy to report failure / succes.
源代码控制:mercurial
构建:MSBuild
CI 服务器:Hudson
Web 部署:Microsoft Web 部署
Source Control: mercurial
Build: MSBuild
CI Server: Hudson
Web Deployment: Microsoft Web Deploy
CI 服务器:TeamCity
构建工具:NAnt
如果需要,您可以从 NAnt 调用 MSBuild,也可以直接从 TeamCity 执行 NAnt 脚本。对于大多数任务,TeamCity 即可满足您的需求。
CI Server: TeamCity
Build Tool: NAnt
You can shell out to MSBuild from NAnt if desired, and you can also execute NAnt scripts directly from TeamCity. For most tasks TeamCity is all you need.
优点:没有问题、完全可定制、完全控制构建过程、测试和部署
Advantages: no issues, fully customizable, full control over the build process, tests and deployment