Skip to content

Embed sha in assembly? #758

Answered by bording
sgrassie asked this question in Q&A
May 12, 2022 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

You should consider adding a package reference to Microsoft.SourceLink.GitHub to your project. Part of what it does is add the commit hash to the informational version.

I believe this is one of the reasons that MinVer doesn't do this. If it did, then you'd end up with the hash in the version twice.

If your code isn't on GitHub, there are Source Link packages available for many different source control providers. Take a look at https://github.com/dotnet/sourcelink to see a list. Maybe there is one that works for you already.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@bording
Comment options

@sgrassie
Comment options

@bording
Comment options

@adamralph
Comment options

@bording
Comment options

Comment options

You must be logged in to vote
1 reply
@adamralph
Comment options

Answer selected by adamralph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants