Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 569
Chungsy Avatar asked Aug 28 '20 12:08

Chungsy


1 Answers

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.

like image 91
Afshin Avatar answered Oct 17 '22 12:10

Afshin