MSBuild 2017和本地代理出错 [英] Error on MSBuild 2017 and local agent

查看:50
本文介绍了MSBuild 2017和本地代理出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

上下文:运行vsts代理的本地服务器。包含配置为版本的Visual Studio 2017的VS Build的构建

Context : local server running vsts agent. Build containing a VS Build with Visual Studio 2017 configured as version

启动VS版本时,我有几个小时的错误。 Build之前正常运行且尚未更改。

When launching the VS build, I have an error since few hours. Build was working properly before and hasn't been changed.

错误是: 

Error is : 

2017-05-24T13:35:36.7107257Z# #[命令] QUOT; d:\VSO\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.117.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,15.1] -latest -format json

2017-05-24T13:35:36.8357390Z ## [错误]找不到Visual Studio 2017。

2017-05-24T13:35:36.7107257Z ##[command]"D:\VSO\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.117.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,15.1) -latest -format json
2017-05-24T13:35:36.8357390Z ##[error]Visual Studio 2017 was not found.

VSTS代理无法找到MSBuild VS 2017.我没有安装VS 2017,只有MSBuild。

VSTS agent is unable to locate MSBuild VS 2017. I don't have VS 2017 installed, just the MSBuild.

当我查看_work\task\VSBuild forlder时,我可以看到两个文件夹。第一个名称是1.113.0,日期是从4月29日开始。第二个名称是1.117.0,日期是从5月24日开始。我猜这些是由VSTS构建orchestrator推送的脚本,最新的更新是我的
构建的。

When I look in my _work\task\VSBuild forlder, I can see two folders. First one name is 1.113.0, date from 29 Apr. Second one is 1.117.0, date from 24 May. I guess that those are scripts pushed by VSTS build orchestrator and that the latest update screw my build.

根据vswhere github上的这个问题,https://github.com / Microsoft / vswhere / issues / 61,我们必须添加参数"-products *";为了获得正确的信息。这在我的服务器上验证。如果没有这个参数,则返回空数组。

According to this issue on vswhere github, https://github.com/Microsoft/vswhere/issues/61 , we have to add argument "-products *" in order to get the correct information. This is verified on my server. Without this argument, empty array is returned.

MS的某些人可以在这一点上提供帮助吗? 

Can someone from MS may help on this point ? 

希望我足够清楚:)

提前致谢

问候

Emmanuel

推荐答案

已删除


这篇关于MSBuild 2017和本地代理出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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