Recently started getting errors on build machines using the latest nuget.exe (2.8.6)
.nuget\nuget restore MySolution.sln Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
The exact tree of commands / sources is restored using nuget.exe 2.8.5
The machine build is Windows 2008 R2, .NET 4.0 (4.5 updates are not allowed on this build image) and VS 2010. Basically, we have several build machines that are configured for certain combinations (Windows, .NET, Visual Studio) .
Build 2.8.6 seemed to depend on .NET 4.5, which crashed into machines without it.
source share