There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
-Safe and -IncludePrerelease don't behave correctly
We produce regularly different versions of packages and often we have an overlap between an RC and Beta phase for the same components.
We use the package prerelease function to tag the packages accordingly which makes it necessary to use the -IncludePrerelease flag when updating pakcages.
When this flag is used the -Safe flags seems to be ignored.
Say we have 1.14.2-RC9091 and 1.15.0-Beta1241 in the Nuget Repository.
In our solution we reference 1.14.2-RC9020 but we want to update to 1.14.2-RC9091.
To do so, we use the following powershell commandline:
update-package -Safe -IncludePrerelease
Nuget installs version 1.15.0-Beta1241 !!!!