Skip to content

Keep Source Link out of the packages' dependencies - #12

Merged
sadeqabuhattem merged 1 commit into
mainfrom
fix/sourcelink-private-assets
Nov 6, 2026
Merged

sadeqabuhattem merged 1 commit into
mainfrom
fix/sourcelink-private-assets

Conversation

@sadeqabuhattem

Copy link
Copy Markdown
Member

Summary

Microsoft.SourceLink.GitHub was referenced without PrivateAssets="All", so every published Settings package (1.0.0-preview.1 to preview.3) lists it as a dependency. Applications that install Settings download it, and its targets then run in their builds and warn:

Source control information is not available - the generated source link is empty.

It's build-time only: it embeds source-control metadata into the PDBs, and that still happens. This adds PrivateAssets="All", as Media, MultiLingual and Auditing already have it.

Applications keep the warning until a release with this fix ships.

Verification

  • Packed locally, all six packages list the same dependencies as the published 1.0.0-preview.3, except Microsoft.SourceLink.GitHub, which is gone.
  • Unit tests pass on net8.0 and net10.0 (210 each).
  • Both DotNetBoost samples, built against this source, no longer show the warning.

🤖 Generated with Claude Code

Microsoft.SourceLink.GitHub was referenced without PrivateAssets="All",
so every published package from 1.0.0-preview.1 to preview.3 lists it
as a dependency. Applications that install Settings download it, and
its buildTransitive targets then run in their builds and warn "Source
control information is not available". It is build-time only: it embeds
source-control metadata into the PDBs, which still happens. Media,
MultiLingual and Auditing already mark it PrivateAssets="All".

Verified: packed locally, all six packages list the same dependencies
as the published 1.0.0-preview.3 except for Microsoft.SourceLink.GitHub,
which is gone; unit tests (210 x2) pass; and the two DotNetBoost samples,
built against this source, no longer show the warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sadeqabuhattem
sadeqabuhattem merged commit 2b28f6d into main Nov 6, 2026
10 checks passed
@sadeqabuhattem
sadeqabuhattem deleted the fix/sourcelink-private-assets branch November 6, 2026 19:30
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