-
Couldn't load subscription status.
- Fork 840
Add OriginalRepoCommitHash to assemblies #6667
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds assembly metadata to include the original repository commit hash in compiled assemblies. This enables tracking of the source code revision that was used to build the assembly, which is useful for debugging and provenance tracking.
- Adds a new AssemblyMetadataAttribute with "OriginalRepoCommitHash" key when RepoOriginalSourceRevisionId is available
- The metadata is conditionally included only when the RepoOriginalSourceRevisionId MSBuild property is set
See dotnet/dotnet#1572
Microsoft Reviewers: Open in CodeFlow