关于MSBuild脚本,有很好的教程吗? [英] Is there a good tutorial on MSBuild scripts?

查看:68
本文介绍了关于MSBuild脚本,有很好的教程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序项目,并且需要创建一个构建脚本;我可以从我的CruiseControl服务器触发的构建脚本.由于nant已有很长时间没有维护,我认为MSBuild是必经之路.

I'm working on a web application project, and I need to create a build script; a build script that I can trigger from my cruisecontrol server. Since nant has not been maintained for ages, I figure that MSBuild is the way to go.

我需要构建脚本才能

  • 编译所有程序集
  • 执行单元测试
  • 在单元测试上运行NCover分析
  • 部署数据库(取决于参数).这实际上是一种工具,因为我最终将编写自己的工具来部署数据库.但是该工具的执行应基于某些命令行参数而定.
  • 以CruiseControl可以阅读和理解的格式提供单元测试和覆盖结果.

我认为MSBuild将允许我执行所有这些操作.但是我不知道从哪里开始.有人知道有个很好的教程可以帮助我开始构建脚本吗?

I assume that MSBuild will allow me to do all these things. But I don't know where to start. Does anybody know of a good tutorial to get me started with my build script?

推荐答案

这是我的第一篇教程.非常容易理解和遵循:

This was my first tutorial. Very easy to understand and follow:

https://codingcockerel.wordpress. com/2008/04/15/automating-the-build-with-msbuild/

这篇关于关于MSBuild脚本,有很好的教程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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