Visual Studio生成步骤和MSBuild生成步骤之间的区别 [英] Differences between Visual Studio Build step and MSBuild Build step

查看:362
本文介绍了Visual Studio生成步骤和MSBuild生成步骤之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一些构建定义,而我看到的Visual Studio构建步骤和MSBuild构建步骤之间的唯一区别是VS Build步骤将Visual Studio版本添加到了构建中.

I'm creating some build definitions and the only difference I see between the Visual Studio Build Step and MSBuild Build Step is that the VS Build Step adds the visual studio version to the build.

有人可以解释更多的差异吗?

Somebody can explain maybe more differences?

推荐答案

它们与Daniel提到的几乎相同.主要区别就在于您发现的内容:"Visual Studio构建"步骤将Visual Studio版本添加到构建中.

They are almost the same just as Daniel mentioned. The main difference is just as what you have found: Visual Studio Build step add Visual Studio Version to the build.

我应该使用Visual Studio Build步骤还是MSBuild步骤?

如果要构建解决方案,则在大多数情况下,应使用 Visual Studio生成步骤.自动执行此步骤:

If you are building a solution, in most cases you should use the Visual Studio Build step. This step automatically:

  • 为您设置/p:VisualStudioVersion属性.这迫使MSBuild使用一组特定的目标来增加 构建成功的可能性.

  • Sets the /p:VisualStudioVersion property for you. This forces MSBuild to use a particular set of targets that increase the likelihood of a successful build.

指定MSBuild版本参数.

Specifies the MSBuild version argument.

在某些情况下,您可能需要使用MSBuild步骤.例如,你 如果您要构建除解决方案之外的代码项目,则应使用它.

In some cases you might need to use the MSBuild step. For example, you should use it if you are building code projects apart from a solution.

这篇关于Visual Studio生成步骤和MSBuild生成步骤之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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