How to include commit URL in nuget package description
PreviousHow to select first item in an ItemGroupNextHow to include package reference files in your nuget
Last updated
Last updated
It's quite helpful to include a that produced a given package version, so your users can quickly see what's included (i.e. they may be tracking a bug fix).
If you are using , you already have all the information you need automatically populated for you. The following target will update the description just before the nuget is produced:
This will result in a short-ish link (we trim it to 9 chars, which is the common short sha in Git) to the repo, similar to many .
If you're using instead, you'll have to populate the RepositoryUrl
yourself, and replace SourceRevisionId
with GitSha
.