If you’ve messed up your NuGet settings the package source URL is https://api.nuget.org/v3/index.json and you can add it back into Visual Studio using the below steps…
Right click on your project and click ‘Manage NuGet Packages…’
… then open the package source settings…
… and finally add the V3 NuGet URL back in to match below…