[Bug]: Nuget.Client does not work for .NETFramework < 4.7.2 #11335
Labels
Functionality:SDK
The NuGet client packages published to nuget.org
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Type:Bug
NuGet Product Used
MSBuild.exe
Product Version
NuGet.Frameworks package 5.11.0
Worked before?
NuGet.Frameworks package 5.8.0
Impact
I'm unable to use this version
Repro Steps & Context
Repro Steps: .NETFramework4.6.1 Console Application:
throws:
Context: I have encountered this problem while using Restore from Nuget.Commands after upgrading to version=5.11.0 from 5.8
Investigation: Nuget.Frameworks 5.11 targets .NETFramework 4.0, .NETFramework 4.7.2 and .NETStandard 2.0. A project that targets .NET461 will use the Nuget.Frameworks for .NETFramework 4.0 because it's the closest version. On .NETFramework 4.0 the reported missing method is indeed missing.
Nuget.Frameworks 5.8 targets also .NETFramework 4.5 which for a NET461 project would be the closest version and on this version the method is not missing.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: