0

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.

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.

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

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?

greenjaed
  • 589
  • 8
  • 20
Rod
  • 4,107
  • 12
  • 57
  • 81

1 Answers1

1

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.

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.

Edward Han-MSFT
  • 2,879
  • 1
  • 4
  • 9
  • Thank you, Edward. I followed the links to https://dotnet.microsoft.com/download where it recommended I download .NET 4.8. However, that failed because it insisted on .NET 4.7.2. I got onto the build server to try to uninstall .NET 4.8. It doesn't show up in Programs and Features. How do I remove .NET 4.8, when it doesn't show up? – Rod Jan 27 '21 at 18:54
  • You could refer to this thread: https://stackoverflow.com/questions/57601475/how-to-uninstall-net-framework-4-8-from-windows-10 and https://learn.microsoft.com/en-us/dotnet/framework/install/troubleshoot-blocked-installations-and-uninstallations for guidance. – Edward Han-MSFT Jan 28 '21 at 01:34