CodePlexProject Hosting for Open Source Software
When issue an Update-Package with both -Safe and -IncludePrerelease the latter seems to be ignored.
1.0.0 would be updated to 1.1.0-RC but not 1.1.0.
Is this intended behaviour?
Yes, it's the intended behavior. 1.0.0 -> 1.1.0 would be considered a major and (potentially) breaking changes, and hence not safe.
Then why would i want the 1.1.0-RC or 2.0.0-RC for that matter?
Yah, that is the artifact of our code whereby we consider any version smaller than 1.1.0 to be eligible for -Safe update, and 1.1.0-RC happens to be smaller than 1.1.0. Maybe we should re-consider this.
Thank you for the reply.
I can confirm that i works as you have described, though it would make more sense if 1.0.0 would not safely upgrade to 1.1.0-RC.
I agree. -Safe should act like the help says it should "upgrade to newer versions with the same Major and Minor version component.". 1.0.0 to 1.1.0-RC, doesn't feel like the same major and minor version.
I think this is unarguably a bug.
filed http://nuget.codeplex.com/workitem/2007 to track it.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.