Skip to content
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

Added git hash to AssemblyInformationVersion #1560

Merged
merged 1 commit into from
Jan 6, 2018

Conversation

RLittlesII
Copy link
Member

@RLittlesII RLittlesII commented Jan 5, 2018

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Adds the git commit sha to the Product Version on ReactiveUI dll's.

What is the current behavior? (You can also link to an open issue here)
fixes #1515

What is the new behavior (if this is a feature change)?
When viewing the Properties -> Details of any ReactiveUI dll you will be able to see the first 8 characters of the git commit hash in the Product Version field.

What might this PR break?
Shouldn't break anything, it is an isolated change to the output of the nuget package dll's.

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:
@ghuntley was concerned about the legacy dll's being different. It seems that they are working. ReactiveUI.WPF and ReactiveUI.Events.WPF both seem to have the new commit hash without the need to do anything different.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 779885d on RLittlesII:GH1515 into ** on reactiveui:develop**.

Copy link
Member

@olevett olevett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for this.

Not sure if you've looked at and discounted this, but I think GitVersion includes an InformationalVersion that can be configured
(https://gitversion.readthedocs.io/en/latest/configuration/) out of any of the variables available here, so we could push this down to GitVersion rather than Cake. I think we'd still need the MSBuild property to be set though, so that may not be any neater.

@RLittlesII
Copy link
Member Author

@olevett I'll take a look at it this weekend, and see if that is a cleaner solution.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 31e208b on RLittlesII:GH1515 into ** on reactiveui:develop**.

Added informational version format to GitVersion config
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 178f718 on RLittlesII:GH1515 into ** on reactiveui:develop**.

@olevett
Copy link
Member

olevett commented Jan 6, 2018

Looks good to me, thanks :)

@olevett olevett merged commit f4e9971 into reactiveui:develop Jan 6, 2018
@RLittlesII RLittlesII deleted the GH1515 branch January 7, 2018 20:42
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants