12

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.

Screenshot

René Vogt
  • 43,056
  • 14
  • 77
  • 99
Abdul Karim
  • 159
  • 1
  • 1
  • 7

2 Answers2

16

enter image description hereChange 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