是否可以将 System.ValueTuple 4.5.0 放到 TFS 2015 服务器上? [英] Is it possible to get System.ValueTuple 4.5.0 onto a TFS 2015 server?

查看:45
本文介绍了是否可以将 System.ValueTuple 4.5.0 放到 TFS 2015 服务器上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我正在开发的 WPF 应用程序中,我添加了一个返回元组的方法.最初它不起作用.研究为什么我知道我必须将 System.ValueTuple 4.5.0 NuGet 包添加到项目中.我这样做了,这解决了问题.至少在我的开发箱上是这样.

In a WPF app I'm working on, I added a method that returns a tuple. Initially it didn't work. Researching why I learned that I had to add System.ValueTuple 4.5.0 NuGet package into the project. I did so, which resolved the issue. At least on my dev box.

但是,它不是在我们的 TFS 2015 构建服务器上构建的.我原以为在构建过程中包含 NuGet 包可以处理 System.ValueTuple 的任何问题.构建服务器上有 .NET 4.5.2.(与 VS 项目相同).我在这篇堆栈溢出帖子上读到了降级 System.ValueTuple到 4.3 将有助于解决问题.我试过了,但没有用.TFS 仍然给出错误,表明它不理解元组的语法.

However, it isn't building on our TFS 2015 build server. I had thought that including the NuGet package would handle any issues with System.ValueTuple during the build. The build server has .NET 4.5.2 on it. (Same as the VS project). I read on this Stack Overflow post that downgrading System.ValueTuple to 4.3 would help to resolve the issue. I tried that, but it didn't work. TFS still gives errors indicating it doesn't understand the syntax of a tuple.

那么我想问一下,是否可以在 TFS 构建服务器上安装 System.ValueTuple 4.5.0 NuGet?

I'd like to ask then, is it possible to get System.ValueTuple 4.5.0 NuGet installed on the TFS build server?

如果该问题的答案是否定的,或者没有意义,那么在构建服务器上安装 .NET 4.7.2(或更高版本)是唯一的选择吗?

If the answer to that question is no, or it doesn't make sense, then is the only option to install .NET 4.7.2 (or higher) on the build server?

推荐答案

参考此线程:System.ValueTuple 现在支持 .NET Framework 4.7,您需要在 Team Foundation Server 2015 构建服务器上安装 .NET 4.7.2(或更高版本).还有这个 博客 提到TFS 2015 和.NET 4.6 当时发布.因此 Team Foundation Server 2015 无法预安装 .NET 4.7.

By reference to this thread: System.ValueTuple now supports .NET Framework 4.7, you need to install.NET 4.7.2 (or higher) on the Team Foundation Server 2015 build server. Also this blog mentioned TFS 2015 and .NET 4.6 were released at that time. So Team Foundation Server 2015 couldn't pre-install .NET 4.7.

此外,Team Foundation Server 现在称为 Azure DevOps Server,您可以考虑使用 https://nama href.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdevops%2Fserver%2Fupgrade%2Fget-started%3Fview%3Dazure-devops-2020&data=04%7C01%7CV-edha%40microsoft.com%7Cfa18d953379e4a21687408d8c2894480%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637473242097970321%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=PenYqEm1lk9LrsUYlF8Jmph16ubhUWCzlPgfoM7Y6%2Fs%3D&reserved=0" 没有rel="2010" 和最新版本的Azurer0p>服务器可以享受最新版本的Azurer0p2.

In addition, Team Foundation Server is now called Azure DevOps Server, you could consider to upgrade your deployment to the latest version of Azure DevOps Server 2020, and then can enjoy the latest service.

这篇关于是否可以将 System.ValueTuple 4.5.0 放到 TFS 2015 服务器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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