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

查看:15
本文介绍了有没有关于 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天全站免登陆