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 !!!!
Comments: I think the MaxVersion should be specified like this: ``` MaxVersion = new SemanticVersion(new Version(version.Version.Major, version.Version.Minor + 1, 0), "a") ```
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 !!!!
Comments: I think the MaxVersion should be specified like this: ``` MaxVersion = new SemanticVersion(new Version(version.Version.Major, version.Version.Minor + 1, 0), "a") ```