-
Hi, firstly can I say that coming from GitVersion, that this lib is much simpler and is removing some complications for me as part of the build pipeline. Second, I might be missing something so I wanted to ask this in a discussion before I started an issue, but I can't see a way of getting the Some people just want to see the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Ok, I can see how I could do this in an |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.