Scary uex for dependency updates via console

Feb 15, 2011 at 1:20 PM
I have a package (Swt) with a dependency on another (Epoch).

Epoch released an update. I go and execute update-package, and get the following "scary" message in the output window:

PM> update-package netfx-System.DateTimeEpochExtensions
'netfx-System.DateTimeEpochExtensions 1.0.0.1' already installed
Successfully removed 'netfx-System.DateTimeEpochExtensions 1.0.0.0' from MvcApplication2
Uninstalling 'netfx-System.DateTimeEpochExtensions 1.0.0.0' might cause 'netfx-Microsoft.IdentityModel.Swt 1.1.1.33, netfx-Microsoft.IdentityModel.Swt 1.1.1.35' to be broken
Successfully uninstalled 'netfx-System.DateTimeEpochExtensions 1.0.0.0'
Successfully added 'netfx-System.DateTimeEpochExtensions 1.0.0.1' to MvcApplication2

The glowing pink in the output window might scare users. Being an update and not an uninstall (from the users' point of view), it would be appropriate not to show any of the intermediate messages. Ideally, just:

PM> update-package netfx-System.DateTimeEpochExtensions
Successfully updated to 'netfx-System.DateTimeEpochExtensions 1.0.0.1'

:)

/kzu

--
Daniel Cazzulino | Developer Lead | MS MVP | Clarius Consulting | +1 425.329.3471
Developer
Feb 15, 2011 at 4:55 PM

What version of NuGet are you using?

Feb 15, 2011 at 6:13 PM
Latest version is friendlier:

PM> update-package netfx-Guard
Successfully installed 'netfx-Guard 1.2.0.1'.
Successfully removed 'netfx-Guard 1.2.0.0' from MvcApplication2.
Successfully added 'netfx-Guard 1.2.0.1' to MvcApplication2.


way to go :)