Cannot search for online NuGet packages in visual studio 2019. Default package source is offline and no option for adding online package source. Searched through the internet. Wasn't able to find the solution. Please check the image below.
Asked
Active
Viewed 1.0k times
12
-
Are you using a proxy server to access the internet? – Leon Apr 17 '19 at 13:33
2 Answers
16
Change the Package Source to nuget.org, if is not available add it https://api.nuget.org/v3/index.json

MrLu
- 376
- 2
- 9
12
If you click on the gear to the right of the Package Source drop down, it'll take you into the options for Package Sources. You can then add nuget.org as a package source. For example, I have:
Name: api.nuget.org
Source: https://api.nuget.org/v3/index.json

Jon Skeet
- 1,421,763
- 867
- 9,128
- 9,194