NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 253 forks source link

[Test Failure]Restore failed after changing Target framework from ".NET Standard 1.4" to ".NET Standard 2.0" #4981

Closed AndyTian-Devops closed 6 years ago

AndyTian-Devops commented 7 years ago

NuGet Version: NuGet 4.3.0-preview1-2461 VS Version: Dev15 VSUWPT 26404.00 OS Version: Windows 10 RS2_Release

Repro Steps: 1.Create a C# .NET Standard Class Library project. 2.Right click the project file on solution explorer and choose the "Properties".

  1. Change Target framework to ".NET Standard 2.0"

Expected Result: No error after changing Target framework from ".NET Standard 1.4" to ".NET Standard 2.0"

Actual Result: Restore failed. Unable to resolve 'NETStandard.Library (>= 2.0.0-beta-25123-01)' for '.NETStandard,Version=v2.0'.

AndyTian-Devops commented 7 years ago

After changing target framework, the dependencies node is empty. netstandard20

emgarten commented 6 years ago

I believe this was caused by the package source missing this package.