Update-Package : Cannot process command because of one or more missing mandatory parameters: Id.

Jul 7, 2011 at 3:01 PM

Hello,

I am trying to update all packages in all projects in a solution. I followed the NuGet 1.4 help:

http://docs.nuget.org/docs/release-notes/nuget-1.4

And used the following:

PM> Update-Package
Update-Package : Cannot process command because of one or more missing mandatory parameters: Id.
At line:1 char:15
+ Update-Package <<<<
    + CategoryInfo          : InvalidArgument: (:) [Update-Package], ParameterBindingException
    + FullyQualifiedErrorId : MissingMandatoryParameter,NuGet.PowerShell.Commands.UpdatePackageCommand

What am I doing wrong?

Thank you,

Miguel

Jul 7, 2011 at 3:23 PM

That's strange. As a test, does it also fail when running this on a new project with no packages? For me, this works fine (and is a no-op). Also, try running 'Get-Host' to make sure you have the latest version.

Jul 7, 2011 at 3:51 PM

It is working now ... I had NuGet 1.2.

I thought I had the latest version since I just updated to VS 2010 SP1.

Thank You,

Miguel