visual-studio - TFS 2017 - MSBuild 14 是 VS 2017 15.5 更新后的默认值。需要返回 MSBuild 15

标签 visual-studio msbuild visual-studio-2017 tfsbuild

我们的 TFS 2017 服务器/构建服务器,我们使用“Visual Studio 安装程序”将 Visual Studio 2017 更新到最新版本 (15.5.27130) 以支持某些功能/修复程序。当我们进行该更新时,TFS 构建过程现在默认为 MSBuild 14.0,它没有我们在 MSBuild 15 中使用的 C# 功能。我尝试更新 TFS 2017 Update 3,以及完全卸载 VS 2017 并重新安装。没有什么不同。由于错误的 MS Build,我们所有的构建服务现在都失败了。这已经与 TFS 17、VS 17 一起使用了一年没有问题。

我可以在路径“C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin”中看到可用的 MSBuild 15

我的 TFS 构建定义也有“最新”以及我选择 2017 时的情况 - 但没有区别。

enter image description here

我也在构建的输出中看到了这一点:

enter image description here

怎么检测不到?如何更改默认设置?

Note - I am not sure if this is the right place for StackOverflow, but it is development related with more people here that are familiar.



enter image description here

最佳答案

最终变得很简单......只需要将构建代理更新到最新版本。引用:Visual Studio Developer Community problem report

关于visual-studio - TFS 2017 - MSBuild 14 是 VS 2017 15.5 更新后的默认值。需要返回 MSBuild 15,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48011498/

相关文章:

node.js - 吉普 错误!堆栈错误: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

MySQL Visual Studio 2015 无法为所选对象创 build 计窗口

c++ - 在类或结构中使用未设置的成员变量

visual-studio - 无法使用 Visual Studio 访问 Azure SQL 数据库,但可以使用 SSMS

msbuild - 在 MVC webapp 上使用 msbuild 收到 "error ASPPARSE: Could not load type ..."错误

jenkins - MSDeploy WMSVC 无法在 .net 环境中工作

javascript - 将 ASP.NET 服务器脚本添加到 moSTLy-static .JS/.CSS 文件而不丢失 IntelliSense?

c# - 如何获取 .csproj 文件中两个日期之间的差异?

TFS:您正在尝试的命令无法完成,因为文件 'aaaaa.vdproj' 受源代码控制

oop - C# VS2017 中的 getter setter