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

Set BuildingRef as output property from GetBuildVersion #470

Merged
merged 2 commits into from May 2, 2020

Conversation

aok-foss
Copy link
Contributor

It's not a good idea to take a dependency on a branch name. At the same time, branches are too useful to ignore. The PublicRelease functionality depends on them.
The argument can go one step further: during development (in non-public releases), branch names in version numbers are useful for traceability: e.g. 1.0.0-g1234567+PR1512 or 1.0.0-g1234567+BalpineLinux

It would be easiest to extend NBGV-produced version numbers in the way above if NBGV also provided access to build refs.

@dnfclas
Copy link

dnfclas commented Apr 27, 2020

CLA assistant check
All CLA requirements met.

Copy link
Collaborator

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

While I object to using branch name as part of the version spec, I don't mind setting an msbuild property with it and letting you decide to do it. So I like your approach, modulo your removal of another supported scenario.

@AArnott AArnott changed the title Include PrivateReleaseRef to output of GetBuildVersion Set BuildingRef as output property from GetBuildVersion May 2, 2020
Copy link
Collaborator

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

Thanks

@AArnott AArnott added this to the v3.2 milestone May 2, 2020
@AArnott AArnott merged commit 8ed3707 into dotnet:master May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants