I\'ve tried every package I could possibly find and none of them will install in my project. I\'ve installed every update listed in the Extensions and Updates list that wer
Just to help out anyone who has landed on this page after updating VS2015 to update 2 and trying to manage packages on a website, receiving the "NuGet configuration file is invalid" error, this is a known and acknowledged issue:
https://connect.microsoft.com/VisualStudio/feedback/details/2698136/nuget-configuration-is-invalid-manage-nuget-packages-for-solution-disabled
I got mine working again by installing package manager 3.4.4 (beta) from http://dist.nuget.org/index.html
They do also state update 3 for Visual Studio will also contain a fix
I was able to resolve this issue by reinstalling Nuget Package Manager via Tools -> Extensions and Updates
I had this problem with Visual Studio 2017: It turns out that there are two class library projects - one for .Net and the other for C#. I created the one for .Net and when I tried to install a specific package (Nunit in my case) I got the error message.
Recreating the project as C# class library fixed the problem
Open the packages folder. Check if files with extension .deleteme exists, example Newtonsoft.Json.9.0.1.deleteme. Delete all the packages which have a .deleteme file manually. Delete the .deleteme files. Close and open the Nuget Explorer.
Simply restarting Visual Studio works for me.. try restarting Visual Studio.
Change the "package source" in nuget to All
Details:
None of the above helped in my case.
My problem was that I restricted to only one private feed. Once I changed the "package source" to All
, my problem was solved. I believe the crux of the matter is that my private pkg has a dependency on other pkgs from nuget.org.
I hope this can help someone