Have you just seen the error message “package requires NuGet client version”? Do you want to know how to update NuGet?
I was just trying to install the new version of Google APIs Client Library, and ran across this error message. This was a new error message to me.
This error message is telling me that there is a new version of NuGet and if I want to install the package, then I have to use the new version of NuGet. If you go to the Tools -> Extension manager menu in visual studio you will find a list of installed extensions. Once you have found NuGet you will be allowed to update it.
Once it is updated you will then have to restart Visual studio and you will be able to install your package.
Conclusion
Some packages can only be installed with the newest version of NuGet package manager. If you see the “package requires NuGet client version” you know that you need to upgrade to a new version of NuGet, before you will be able to install the package.
This was just what I needed. Thanks!
Thanks for sharing this. I had to actually uninstall my Nuget and reinstall the latest – did not see update option. And thanks for the article on google sheets – that is what landed me here eventually 🙂
Thanks for this. I’m actually getting this error on our CI server (which is presumably running a slightly out of date version of NuGet), so rather than upgrading NuGet on the server I’d like to be able to downgrade the package until the CI server can run it. However I can’t see “required NuGet client version” anywhere on the NuGet package info. Any advice on where to find this?
well now you have got me on that one, I have no idea how to get other versions of the nuget package. Try and post it as an issue here someone should answer https://github.com/google/google-api-dotnet-client
I am getting following error message :The ‘Microsoft.IdentityModel.Clients.ActiveDirectory 3.13.5’ package requires NuGet client version ‘2.8.6’ or above, but the current NuGet version is ‘2.7.40911.287’.
But while updating Nugest Package its updating to latest version only i.e. 2.12
How to install Specific version Nugest Package ??