Skip to content

Drop explicit Microsoft.SourceLink.GitHub reference - #565

Merged
mgravell merged 2 commits into
masterfrom
marc/drop-sourcelink
Sep 15, 2026
Merged

mgravell merged 2 commits into
masterfrom
marc/drop-sourcelink

Conversation

@mgravell

@mgravell mgravell commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

The .NET SDK has included and enabled Source Link for GitHub-hosted repos by default since 8.0.100; our pinned SDK (10.0.101+, rollForward latestMajor) is well past that. Referencing the package explicitly overrides the SDK's own bundled version, taking on a dependency and its future CVE/version churn for nothing.

Verified the generated *.sourcelink.json and packed nuspec element are unchanged across all target frameworks (net481, netstandard2.0, net6.0/8.0/10.0).


Note

Low Risk
Build/packaging-only dependency cleanup; expected to leave Source Link artifacts unchanged per PR verification.

Overview
Removes the explicit Microsoft.SourceLink.GitHub package from central package management and the repo-wide Directory.Build.props reference so builds rely on the .NET SDK’s built-in GitHub Source Link instead of pinning a separate package version.

This avoids overriding the SDK’s bundled Source Link (relevant for SDK 8.0.100+ / the repo’s current SDK line) and drops an extra dependency with no intended change to sourcelink output or nuspec repository metadata.

Reviewed by Cursor Bugbot for commit 7225c50. Bugbot is set up for automated code reviews on this repo. Configure here.

The .NET SDK has included and enabled Source Link for GitHub-hosted
repos by default since 8.0.100; our pinned SDK (10.0.101+, rollForward
latestMajor) is well past that. Referencing the package explicitly
overrides the SDK's own bundled version, taking on a dependency and
its future CVE/version churn for nothing.

Verified the generated *.sourcelink.json and packed nuspec <repository>
element are unchanged across all target frameworks (net481, netstandard2.0,
net6.0/8.0/10.0).
@mgravell
mgravell merged commit a82f127 into master Sep 15, 2026
21 of 22 checks passed
@mgravell
mgravell deleted the marc/drop-sourcelink branch September 15, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant