Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet package sources missing

I'm trying to install a package that's on nuget.

This one: https://www.nuget.org/packages/NAudio/

When I follow this guide: https://learn.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio about how you add packages to your project I'm stuck at 2) since I only have "Microsoft Visual Studio Offline Packages" available as a source.

This is a new WPF project on a fresh install of VS.net 2019 community edition.

Any ideas what I'm doing wrong?

like image 402
Fluxian Avatar asked Dec 18 '22 11:12

Fluxian


1 Answers

As vernou already mentioned there must be also nuget.org inside the list. If it's not there you can easily add it through the green plus in the upper right corner.

nuget-options

The name is nuget.org (but of course you can name it whatever you want) and the source must be https://api.nuget.org/v3/index.json. After adding this entry you should be able to find the package on nuget.

like image 180
slow Avatar answered Dec 24 '22 02:12

slow