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

Improve assembly versions and available metadata #1231

Merged
merged 3 commits into from
Sep 7, 2022

Conversation

Evangelink
Copy link
Member

@Evangelink Evangelink commented Sep 7, 2022

Fixes #1051

Example when running locally:
image

Obviously, version number will be the correct ones when coming from CI.

<AssemblyVersion>$(MajorVersion).0.0</AssemblyVersion>
<BuildVersion Condition=" '$(BuildVersion)' == '' ">$(MajorVersion).$(TFBuildNumber)</BuildVersion>
<AssemblyVersion>$(LegacyMajorVersion).$(LegacyMinorVersion).0.0</AssemblyVersion>
<BuildVersion Condition=" '$(BuildVersion)' == '' ">$(LegacyMajorVersion).$(LegacyMinorVersion).$(TFBuildNumber)</BuildVersion>
<FileVersion Condition=" '$(FileVersion)' == '' ">$(BuildVersion)</FileVersion>
Copy link
Member Author

Choose a reason for hiding this comment

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

I haven't touched the FileVersion so far, as discussed we need to make tests to see if this can be safely updated.

Haplois
Haplois previously approved these changes Sep 7, 2022
Copy link
Contributor

@Haplois Haplois left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -11,7 +11,6 @@
<PropertyGroup>
<BranchName Condition=" '$(BranchName)' == '' ">BRANCHNAME</BranchName>
<CommitHash Condition=" '$(CommitHash)' == '' ">COMMITHASH</CommitHash>
<CommitId>$(CommitHash.SubString(0, 8))</CommitId>
Copy link
Contributor

Choose a reason for hiding this comment

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

No one liked my short hashes :(

@Evangelink Evangelink merged commit 85c4fff into microsoft:main Sep 7, 2022
@Evangelink Evangelink deleted the assembly-info branch September 7, 2022 16:37
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.

Provide an easy way to see the public version of MSTest
2 participants