gpt4 book ai didi

TFS 2017 - 构建服务器不构建 Visual Studio 2017

转载 作者:行者123 更新时间:2023-12-04 09:43:11 26 4
gpt4 key购买 nike

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

构建日志中的警告是:

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



错误是:

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



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

到目前为止我有
1- 在构建服务器上卸载并重新安装 Visual Studio 2017。
2- 安装了“Visual Studio Build Tools 2017”。

没有任何效果。
我已经阅读了一些文章,显然缺少注册表值,但我不知道如何创建它们。

感谢您在此主题上的帮助。

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

最佳答案

这可能是由于在配置构建代理之后安装了 VS。然后用 TFS 重新注册构建代理,因为 系统功能只有在第一次配置代理时才会发现——之后所做的任何更改都不会被捕获。

更多方法请引用这个类似的问题:No agent could be found with the following capabilities: msbuild, visualstudio, vstest?

或安装 latest version of the agent目前,它似乎能够检测 VS2017。

还记得在 的 Visual Studio 版本选择列表中选择 VS2017 Visual Studio 构建任务 .

enter image description here

关于TFS 2017 - 构建服务器不构建 Visual Studio 2017,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46030135/

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