Skip to content

Sha is appended to AssemblyInformationalVersionAttribute when gitversion.json modified before CoreGenerateAssemblyInfo MSBuild task #4151

Answered by RobSmyth
RobSmyth asked this question in Q&A
Discussion options

You must be logged in to vote

As it happens I found the problem minutes after posting this issue.

It is an SDK 8 feature. See https://stackoverflow.com/questions/77050814/fileversioninfo-productversion-suddenly-contains-git-commit-hash

Fixed by adding this to the project file.

<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>

Thanks ... this can be closed.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by HHobeck
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #4150 on August 09, 2024 09:10.