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.
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 ).
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.
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:
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
Change the Package Source to nuget.org, if is not available add it https://api.nuget.org/v3/index.json
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With