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

[IDP-672] Remove FullBuildMetaData from our library versioning #56

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

heqianwang
Copy link
Contributor

What are the changes

Instead of using assembly-informational-format: '{InformationalVersion}', we decided to use NuGetVersion. The original value combines the MajorMinorPatch along with the full build metadata which yields a result similar to this: 3.22.11-beta.99+88.Branch.release/3.022.011.Sha.28c853159a46b5a87e6cc9c4f6e940c59d6bc68a. That value is being used as the library version displayed in our telemetry library field. Instead, using NuGetVersion yields a result of MajorMinorPatch appended with a prerelease tag if relevant such as: 3.22.11-preview0099

How was it validated?

We updated the GitVersion.yml of our MediaTR project to use NuGetVersion instead and installed it to send telemetry to a private honeycomb sink. On the honeycomb, we verified that the library version was indeed the appropriate field.
image

Additionally, our auditing repo already uses NuGetVersion as seen here.

References:

https://gitversion.net/docs/reference/variables

@heqianwang heqianwang requested a review from a team as a code owner February 5, 2024 23:39
@asimmon asimmon merged commit 2a9c3d2 into main Feb 6, 2024
3 checks passed
@asimmon asimmon deleted the feature/idp-672 branch February 6, 2024 01:11
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.

2 participants