Search code examples
c#asp.net-corenugetasp.net-core-1.0

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


Solution

  • 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.