Library nuget configuration is invalid

2019-04-18 13:47发布

问题:

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?

回答1:

Try the following:

  1. Restart VS and see if this fixes your problem
  2. If restarting didn't help, try to delete nuget.config, explained below.

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, when you click on

Manage Nuget Packages

again.

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