NuGet package sources missing

Viewed 7658
3 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.

I found another way to solve it. According to @zivkan (GitHub Contributor), the reason is that one of the nuget.config files that NuGet tried to open is invalid XML. You can try going to %appdata%\nuget and renaming nuget.config to something else. The next time NuGet tries to access it, it will re-create the file with defaults.

It worked with me.

Follow the original answer here.

If we have the nuget CLI, from the command line we can run this:

nuget add -Name "nuget.org" -Source "https://api.nuget.org/v3/index.json"
Related