Updating a package in all projects that have it installed

Dec 24, 2010 at 1:33 AM
I used the following command:

Get-ProjectNames | %{ Update-Package Tracer -Project $_ }

but instead of updating only those projects that already had the package installed, it went ahead and installed it in every project in the solution!

I expected Update-Package to only update, not actually install too on projects that didn't have package installed previously.

Is that a bug or the intended behavior?


Daniel Cazzulino | Developer Lead | MS MVP | Clarius Consulting | +1 425.329.3471
Dec 24, 2010 at 3:18 AM

Yes, that's the intended behavior. Essentially, Update-Package just calls Install-Package.

Dec 24, 2010 at 3:23 AM

Though, it does feel like a bad user experience. Can you file a bug for this?

Dec 24, 2010 at 3:46 AM

Yes, I agree that this feels like a bug.  The fact the we essentially just call Install-Package explains the behavior, but that doesn't mean that the behavior is what it should be.

Dec 24, 2010 at 3:48 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.