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' already installed
Successfully removed 'netfx-System.DateTimeEpochExtensions' from MvcApplication2
Uninstalling 'netfx-System.DateTimeEpochExtensions' might cause 'netfx-Microsoft.IdentityModel.Swt, netfx-Microsoft.IdentityModel.Swt' to be broken
Successfully uninstalled 'netfx-System.DateTimeEpochExtensions'
Successfully added 'netfx-System.DateTimeEpochExtensions' 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'



Daniel Cazzulino | Developer Lead | MS MVP | Clarius Consulting | +1 425.329.3471
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'.
Successfully removed 'netfx-Guard' from MvcApplication2.
Successfully added 'netfx-Guard' to MvcApplication2.

way to go :)