How to use nuget update without config file or solution

Dec 13, 2011 at 8:47 AM


it's possible to install a package even if there is no solution :

> nuget install <packageId> -o c:\tmp

I try to update my package in a similar way by using :

> nuget update -i <packageId> -r c:\tmp

=> No packages.config or solution file specified

Then I create a packages.config and then run the following command :

> nuget update packages.config -r c:\tmp

=> unable to locate project file for c:\tmp\packages.config

Is there a way to update my package ?

Apr 3, 2013 at 7:58 PM
Edited Apr 3, 2013 at 8:04 PM
I've stumbled upon this problem and I've been able to find a workaround -- in short, you need to insert an empty csproj file in the folder for the update to succeed.

I've made a small sample at to show this and I've also added a more extensive explanation on Stack Overflow.

Hope this helps.
Apr 3, 2013 at 11:18 PM
That's a cool trick.
Jan 28, 2014 at 1:49 PM
Though there is no way to do the same with native packages :)