-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Assembly InformationalVersion now includes GUID suffix #37142
Comments
See dotnet/runtime#95134. It's not a GUID. It's the current Git commit hash used for Source Link. |
I guess a git-commit-hash suffix makes sense, if project has requested it using something like: <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" /> Or specifying But I will try adding |
I can confirm that |
I'm going to close this as we've made and documented this as a breaking change in .NET 8. |
Description
Have library-project with the following setting:
New Azure DevOps has updated to VisualStudio 2022 v17.8 (With NET8 support), then the following value is returned:
2.0.0.2+0fb16b11f9936e0374948c64e8c3b18db25b6fbf
Before when resolving the
InformationalVersion
fromAssemblyInformationalVersionAttribute
, then would have the expected value:2.0.0.2
Reproduction Steps
Create library-project with the following setting:
Expected behavior
InformationalVersion
fromAssemblyInformationalVersionAttribute
should return the specified value. Ex2.0.0.2
Actual behavior
InformationalVersion
fromAssemblyInformationalVersionAttribute
adds GUID-suffix to the value. Ex2.0.0.2+0fb16b11f9936e0374948c64e8c3b18db25b6fbf
The GUID-suffix seems to change on every new build.
Regression?
It worked as expected before Azure DevOps was updated to VisualStudio 2022 v17.8 (With NET8 support)
Known Workarounds
Rollback to older version:
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: