-
-
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
Output the version number parts as properties #109
Comments
How do you envision something like I also don't find a lot of value in setting I do agree that we should do something that lets you opt in to setting Given that, I'm not sure it really makes a lot of sense to add these properties. |
Thanks for the comments @bording.
Yep, they would have do that, but I think just after
The current guidance says:
I guess we could just have an option for just that specific behaviour, or even just make MinVer do this by default, but under the current design, that would still require richer output from |
That is because MinVer also has to be called before CoreCompile, so using just
It does, but it's also just another display value, so I don't know much value there is in setting it that way. For example, if you look at how GitVersion handles it by default, you just get Major.Minor.Patch.0. However, following the recommendation for
If we are just trying to get the Major portion of the version, I think we could likely get MSBuild to parse out just that portion of the single version, meaning we wouldn't need to alter the console output. Another idea could be to go ahead and create a task, but the task just executes the command for now, and then you can do easier parsing of the command-line output in C#, and the task outputs whatever properties you want to have available for the targets to use. |
After thinking about this a bit more, I do think its reasonable for the following things:
The thing I don't think we should do is mess around with |
The only thing I'm not 100% sure of is whether prerelease and height should be separated.
Not necessarily. If the user specifies build metadata in a tag, any build metadata in the option will be appended to it.
Agreed. And if anyone wants to change that, they can do it in their own target.
Agreed. I think it's just a matter of enriching the FAQ.
Agreed. Also because there is no way to consistently express build metadata in those properties for both RTM and pre-release versions. |
Yeah, that's something I've been thinking about too. In fact, I already started to spike it in another branch, just to get nicer errors than when using the |
Released in alpha 16. |
More MinVer properties:
MinVerMajor
MinVerMinor
MinVerPatch
These can be used for things like setting the assembly version or assembly file version.
The text was updated successfully, but these errors were encountered: