-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Revision Part of version number #962
Conversation
… and/or MinVerBuildMetadata
….packages to accept new Signature
…4/Debug not bin/Debug
…seems to auto-trucate to 3 part if no revision is specified
… and/or MinVerBuildMetadata
….packages to accept new Signature
…4/Debug not bin/Debug
…seems to auto-trucate to 3 part if no revision is specified
@Juff-Ma one important thing to bear in mind is that the experience for consumers who are using SemVer (3 part) versions should be unaffected by this change. This spike seems to assume that only NuGet (4 part) versions are used and it appears to force that on to all consumers. |
The only thing it changes currently is the default version for auto increment but i think this could be changed to Patch by default again if required. I added tests (left some old ones intact) to make sure that 3-part tags would still work. If someone was to use the tag "v1.2.3" and auto-increment Patch it should only change the logging output now printing 1.2.3.0/1.2.4.0 this seems to be possible because minver/nugetversion by default doesn't assume what version format you use but i could be wrong |
@Juff-Ma thanks for providing the spike. I get the feeling it would have to be controlled by an option, e.g. Moreover, I'm not sure the use case is common enough to make this worthwhile. It seems that three part versions are canonical. The Given the above, I'm not sure it makes sense add this feature. |
That makes sense. The use cases i have are pretty niche and even i don't have them all the time. While it would have been cool to have this included it isn't a requirement even for me. I get that having to maintain two code paths for such a niche functionality is unacceptable. I personally also use SemVer when applicable and therefore also MinVer when available . |
Pull request for #961
One test couldn't complete for me because of a weird error with the nupkg being put in the wrong folder. One still can't run (seemingly because of the same issue). Another one is impossible for me to run (DoesNotRecreatePackage) because my system language is set to german.
All other test run fine for me. (Please ignore the double and coauthored commit, this is an error caused by visual studio git support)