-
Prerequisites
GitVersion packageGitVersion.MsBuild GitVersion version6.0.0 Operating systemWindows What are you seeing?Using GitVersion.MSBuild, I have inserted a task after GenerateGitVersionInformation task and before CoreGenerateAssemblyInfo task that modifies the generated gitversion.json file (only). The generated AssemblyInformationalVersion contains the modified InforationVersion in the json file but appends the full Sha. After doing this, the
This is correct. I have inserted this text for testing.
Also good. But the compiled dll assembly info version viewed in explorer (and my tests) is:
Is this expected behaviour? If so, can I stop it appending? What is expected?The Steps to ReproduceDifficult as I've gone to some trouble creating a task that runs a script to modify gitversion.json and it is not complete. My task runs with this setup:
Another alternative would be modify the gitversion.json file and run the assembly info generator alone. Is that possible? RepositoryFixture TestNo response Output log or link to your CI build (if appropriate).No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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.
Thanks ... this can be closed. |
Beta Was this translation helpful? Give feedback.
-
For others ... here is further info: https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/8.0/source-link |
Beta Was this translation helpful? Give feedback.
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.
Thanks ... this can be closed.