-
Notifications
You must be signed in to change notification settings - Fork 653
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
Add support and tests for AssemblyInformationalVersion configurability #660
Add support and tests for AssemblyInformationalVersion configurability #660
Conversation
Thanks for rebasing this @MarkZuber Just wondering if it would be better to instead call it Another option is to have |
I'd prefer a string interpolation based solution with named variables. :) |
OK. I've looked at StringFormatWith and it works great except the code all tests currently pass and i'm writing some additional tests now to cover thanks for the feedback and input. -mark On Mon, Oct 5, 2015 at 12:19 AM, Asbjørn Ulsberg [email protected]
|
Updated the code to provide assembly-informational-format in the yaml config to customize how the assembly informational data will be formatted.
Quick ping. Does everything look acceptable? Would love to get this into mainline and get a real drop. Please let me know if there are any other changes you'd like me to make. thanks! |
Does this also fix #368? |
@@ -0,0 +1,116 @@ | |||
namespace GitVersion | |||
{ | |||
public class SemanticVersionFormatValues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we use the VersionVariables
class for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this class in order to generate the VersionVariables class since the types we're using int he formatting need to come from a constructed object. And if we exposed the VersionVariables object as what's valid for formatting, then someone could do {InformationalVersion} and get themselves into an infinite loop. So this gives us type safety of what's allowed to be formatted as well as getting the formatting done to construct the VersionVariables type. I agree it's redundant on most fields (since VersionVariables now just becomes a passthrough/holder for most of the values calculated in the SemanticVersionFormatValues class. Open to suggestions to minimize here if you have them.
Looking really good @MarkZuber, just a few comments on there. Thanks! |
Ping... I think i've answered/fixed all of the issues requested on the feedback. Would love to get this merged so we can pick up an official drop to use on our build servers. thanks! |
Add support and tests for AssemblyInformationalVersion configurability
No description provided.