如何让VS 2017与TFS 2017 XAML Builds一起工作 [英] How to get VS 2017 working with TFS 2017 XAML Builds

查看:132
本文介绍了如何让VS 2017与TFS 2017 XAML Builds一起工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:

旧的Visual Studio版本将msbuild安装到C:\Program Files(x86)\ MSBuild \< version> \ bin中RunMSBuild活动使用ToolVersion + ToolArchitecture来计算此路径。

Old Visual Studio versions installed msbuild into C:\Program Files (x86)\MSBuild\<version>\bin and apparently the RunMSBuild activity used the ToolVersion + the ToolArchitecture to calculate this path.

VS 2017安装它
C:\Program Files(x86)\ Microsoft Visual Studio \\\ 2017; \\ Enterprise $ \\ MSBuild \ 15.0 \ bin和
RunMSBuild可以不再计算正确的路径,此路径甚至可以由用户选择。

VS 2017 instead installs it C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin and the RunMSBuild can't calculate the proper path anymore and this path is even user selectable now.

设置ToolPath的想法不起作用,因为RunMSBuild没有ToolPath属性。

The idea to set ToolPath does not work as RunMSBuild has no ToolPath property.

我目前的解决方法是将新的MS Build 15路径添加到构建器的%PATH%并使用"无路径"路径。 msbuild发现。

My current workaround is to add the new MS Build 15 path to %PATH% of the builduser and use the "pathless" msbuild discovery.

但我无法想象这是正确的方法。

But I can't imagine that's the right way to go.

推荐答案

实际上没有支持的方式,XAML构建已被弃用,并且尚未内置对Visual Studio的支持。支持的前进方式是使用新的构建代理基础结构。

There si no supported way really, XAML builds are deprecated and support for Visual Studio hasn't been built in. The supported way forward is tp really use new build agent infrastructure.

使用/ tv:15 msbuild开关如果配置为查看最近版本的Msbuild.exe

That said, using the /tv:15 msbuild switch should still work if it's configured to look at a decently recent version of Msbuild.exe

这篇关于如何让VS 2017与TFS 2017 XAML Builds一起工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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