Team Foundation Build 如何选择使用哪个版本的 Visual Studio 进行构建? [英] How does Team Foundation Build choose which version of Visual Studio to build with?

查看:48
本文介绍了Team Foundation Build 如何选择使用哪个版本的 Visual Studio 进行构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了评估 VS2015,我们希望将它与 VS2013 并排安装在构建 PC 上.我们的构建是使用 Team Foundation Build 运行的,我看不到构建将如何决定在构建给定解决方案时使用哪个版本的 VS.它是否与所使用的 Team Foundation Server 版本相关,或者可能默认使用最新版本?

Looking to evaluate VS2015, we wish to install it side-by-side with VS2013 on a build PC. Our builds are run using Team Foundation Build and I can't see how a build will decide what version of VS to use when building a given solution. Is it tied to the version of Team Foundation Server being used, or perhaps the newest version will be used by default?

这只是为了快速测试,看看当我们尝试在 2015 年下构建我们的代码库时会发生什么,我们目前正在调查而不是移植.我不太熟悉 VS/TFS/TFSBuild 版本如何组合在一起.

This is only for a quick test to see what happens when we try build our codebase under 2015, we're investigating rather than porting at this time. I'm not really familiar with how VS/TFS/TFSBuild versions fit together.

推荐答案

您可以从命令行指定要使用的 msbuild/visual studio 版本.我通过 Process 选项卡中的 MSBuild Arguments 部分在我的一些构建中执行此操作.如果我希望它使用 Visual Studio 2013,这是我将其设置为的示例:

You can specify which version of msbuild/visual studio to use from the command line. I do this in some of my builds via the MSBuild Arguments section in the Process tab. Here is an example of what I set it to if I want it to use Visual Studio 2013:

/p:VisualStudioVersion=12.0

这里还有另一篇 SO 帖子,可以帮助您解决上述问题的具体细节.

Also here is another SO post that might help you with the specifics of your question above.

如何启动正确版本的 Msbuild

这篇关于Team Foundation Build 如何选择使用哪个版本的 Visual Studio 进行构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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