Search code examples
c#visual-studio-2019nuget-package.net-standard

Unable to find package NETStandard.Library


I tried to add a new Class library(.Net Standard) in Visual studio 2019. But I get this error message:

Unable to find package NETStandard.Library. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages.

I haven't added any code to this file yet. When I go to NugetManager I can see this message:

NetStandard.Library not available at this source

Can anyone please help me with this issue?


Solution

  • Your package source in visual studio is on the Microsoft Visual Studio Offline Packages. You should Go to Package Manager Settings (Tools > Nuget Package Manager > Package Manager Settings).
    On the package sources section enter
    Name : nuget.org
    source :https://api.nuget.org/v3/index.json
    add this package source to your visual studio and click ok.