TFS 2017-生成服务器无法生成Visual Studio 2017 [英] TFS 2017 - Build Server does not build Visual Studio 2017

查看:78
本文介绍了TFS 2017-生成服务器无法生成Visual Studio 2017的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周在我的构建服务器上升级了Visual Studio 2017之后,不再使用MS Build 15.0.因此,每当我尝试编译使用新功能的Visual Studio 2017项目时,它们都会失败.

After upgrade of Visual Studio 2017 last week on my build server, the MS Build 15.0 is not in use anymore. So whenever I try to compile visual studio 2017 projects which use new feature they will fail.

构建日志中的警告为:

找不到Visual Studio版本"15.0".寻找最新 版本.

Visual Studio version '15.0' not found. Looking for the latest version.

错误是:

something.cs(542,41):错误CS1525:无效的表达式项'int'

something.cs(542,41): Error CS1525: Invalid expression term 'int'

我猜这是因为构建服务器正在使用MS build 14.0.

Which is because build server is using MS build 14.0 I guess.

到目前为止,我有 1-卸载并在生成服务器上重新安装Visual Studio 2017. 2-安装了"Visual Studio Build Tools 2017".

So far I have 1- Uninstall and Reinstalled the Visual Studio 2017 on the build server. 2- Installed "Visual Studio Build Tools 2017".

没有任何效果. 我读过一些文章,显然缺少注册表值,但是我不知道如何创建它们.

And nothing works. I have read some articles and apparently there are missing registry values but I don't know how to create them.

感谢您对这个主题的帮助.

Appreciate your helps on this topic.

我正在使用TFS 2017 SP1(本地)和Visual Studio 2017最新更新.

I am using TFS 2017 SP1 (On premises) and Visual Studio 2017 latest updates.

推荐答案

我已通过将TFS从TFS 2017 SP1升级到TFS解决了此问题 TFS 2017 SP2.

I have resolved this issue by upgrading my TFS from TFS 2017 SP1 to TFS 2017 SP2.

感谢@ Patrick-MSFT和@Martin Ullrich的帮助.

Thanks to @Patrick-MSFT and @Martin Ullrich for your help.

这篇关于TFS 2017-生成服务器无法生成Visual Studio 2017的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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