Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot search for NuGet Packages in visual studio 2019 [duplicate]

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

like image 614
Abdul Karim Avatar asked Apr 17 '19 13:04

Abdul Karim


People also ask

How do I install a NuGet package in Visual Studio?

Install it individually by selecting the Individual components > Code tools > NuGet package manager option in the Visual Studio installer. In Solution Explorer, right-click either References or a project and select Manage NuGet Packages.... The Browse tab displays packages by popularity from the currently selected source (see package sources ).

How do I install NuGet on Windows 10?

Package Manager UI In Solution Explorer, right-click References and choose Manage NuGet Packages. Choose "nuget.org" as the Package source, select the Browse tab, search for Newtonsoft.Json, select that package in the list, and select Install: Accept any license prompts.

How do I change the source of a NuGet package?

Package sources. To change the source from which Visual Studio obtains packages, select one from the source selector: To manage package sources: Select the Settings icon in the Package Manager UI outlined below or use the Tools > Options command and scroll to NuGet Package Manager: Select the Package Sources node:

Is it possible to make vs 2019 work with NuGet repositories?

I wonder is there a way to make VS 2019 work with nuget repositories? Usually it works fine, but sometimes occurs the following. I pushed a package into my nexus enterprise repository, waited a while (package is already in repo), than opened a .csproj file and entered pushed version. VS cannot load a package with error


1 Answers

enter image description hereChange the Package Source to nuget.org, if is not available add it https://api.nuget.org/v3/index.json

like image 175
MrLu Avatar answered Oct 12 '22 12:10

MrLu