gpt4 book ai didi

visual-studio - Visual Studio生成步骤和MSBuild生成步骤之间的区别

转载 作者:行者123 更新时间:2023-12-03 14:47:52 25 4
gpt4 key购买 nike

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

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

最佳答案

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

Should I use the Visual Studio Build step or the MSBuild step?

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

  • 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.

  • Specifies the MSBuild version argument.

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 - Visual Studio生成步骤和MSBuild生成步骤之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39667822/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com