dotnet / dotnet/sourcelink

dynamic RevisionID

Open
#620 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

I am successfully able to use source link and download the relative .cs source files from git while debugging.

Currently the revisionid in SourceRoot is static/hardcoded like

``

Since we have different versions of the packages build via Jenkins CI/CD is it possible to get the latest git commit and inject it to the revision id?

I found GITHUB_SHA but don't know if this variable can be used in my MSBuild. Any help is highly appreciated.

Best Regards,
Sam

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.