Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Library NuGet configuration is invalid

VS2015 Update 3.

I created a plain .net core class library. Right-click on Project->References-> Manage Nuget packages throws the following error?

What is missing?

enter image description here

like image 972
Legends Avatar asked Jul 13 '16 00:07

Legends


1 Answers

Try the following:

  1. Restart VS and see if this fixes your problem. (Close + Reopen Solution might work as well)
  2. If restarting didn't help, try to delete nuget.config, explained below.


Previous solution from year 2012:

At the time I wrote this, the below approach worked for me:

Just delete the nuget.config which resides here:

%AppData%/Nuget/Nuget.config

or the nuget.config in your solution folder, if there is any.

A new one will be created automatically again, when you click on

Manage Nuget Packages

Or try to delete the nuget.config in your solution folder.

like image 129
Legends Avatar answered Oct 17 '22 05:10

Legends