Visual Studio中(的.sln)构建亚军和MSBuild的差异 [英] Differences between Visual Studio (.sln) build runner and MSBuild

查看:422
本文介绍了Visual Studio中(的.sln)构建亚军和MSBuild的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要设置的TeamCity使用.NET和配置构建选手做了CI我:

I'm trying to set TeamCity to do a CI using .Net and configuring build runners I have:

  1. 在Visual Studio中(SLN)
  2. 的MSBuild
  3. 在Visual Studio 2003中

有什么区别?为什么三种内建在同一类型的项目工作? (除了2003年这仅仅是2003年,我相信,为什么呢?)

What's the difference? Why three build to work on the same type of project? (With the exception of 2003 which is only for 2003 I believe, Why?)

考虑这个问题,我们有这个版本亚军的.exe文件:

Taking the issue, we have this build runners for .exe files:

  1. 在.NET过程亚军
  2. 在命令行

命令行构建亚军不适用于任何.NET程序集?为什么净进程亚军?

The "Command Line" build runner not works with any .net assembly? Why the .Net Process Runner?

推荐答案

的Visual Studio(SLN)
如果您的解决方案的的,你是不是需要做的花哨的东西的,你可以使用Visual Studio(SLN)建立亚军。它也能做同样的事情,当你做的项目 - >生成(从VS菜单)的。此选项很容易配置,点击几下,你的CI服务器编译您的解决方案。

Visual Studio (sln)
If your solution is small and you are not required to do fancy things you can use Visual Studio (sln) build runner. It does exactly the same thing as when you do Project->Build (from VS menu). This option is very easy to configure, a few clicks and your CI server compiles your solution.

的MSBuild
如果你需要做更多的高级场景的,除了简单的编译,如采用不同的配置文件,插入转化值到配置文件,部署的二进制文件等,您会选择的MSBuild选项。你会知道,当你需要使用它,只是因为SLN生成器将没有能力做的东西的。此选项需要一些知识的构建脚本语言,这是一种基于任务和xml状

MSBuild
If you need to do more advanced scenarios, apart from simple compilation, like apply different config files, insert transformed values into config file, deploy binaries etc, you would select MSBuild option. You will know when you need to use this, simply because sln builder will not be capable of doing stuff. This option requires some knowledge of build scripting language, which is a task-based and xml-like.

这篇关于Visual Studio中(的.sln)构建亚军和MSBuild的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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