Repository navigation
fix(ci): Drop SourceLink package, use the SDK's - #24464
Conversation
The explicit Microsoft.SourceLink.GitHub 8.0.0 reference suppressed the SDK's implicit SourceLink import and pinned Microsoft.Build.Tasks.Git 8.0.0, which NuGet audit now flags (GHSA-23fw-v26w-5fgq). fixes #24463 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Jox2uQ5z5SLRqfrhGMg2ZX
|
Claude finished @MartinZikmund's task in 50s —— View job Review: fix(ci): Drop SourceLink package, use the SDK'sVerdict: ✅ Ship — no inline findings. Summary
No cross-cutting concerns. |
There was a problem hiding this comment.
🟢 Approval recommended
The change is narrowly scoped to removing a problematic package reference, and repository-wide searches confirm no remaining Microsoft.SourceLink.* references that would keep suppressing the SDK’s implicit SourceLink.
Pull request overview
This PR fixes CI restore failures caused by a vulnerability advisory (NU1902) by removing an explicit Microsoft.SourceLink.GitHub package reference that was suppressing the .NET SDK’s implicit SourceLink support and pinning an outdated Microsoft.Build.Tasks.Git.
Changes:
- Removed the explicit
Microsoft.SourceLink.GitHubPackageReferencefromsrc/Directory.Build.props. - Added an inline MSBuild comment explaining why SourceLink should be provided implicitly by the SDK (and why adding the package back is harmful).
File summaries
| File | Description |
|---|---|
| src/Directory.Build.props | Drops the explicit SourceLink package reference to allow SDK-provided SourceLink/tasks and avoid restore failures from the vulnerable pinned dependency. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24464/wasm-skia-net9/index.html |
Co-authored-by: Xiaotian Gu <[email protected]>
|
Claude finished @MartinZikmund's task in 50s —— View job Review: fix(ci): Drop SourceLink package, use the SDK's
Verdict: ✅ Ship — no findings. Summary
No cross-cutting concerns. |
There was a problem hiding this comment.
🟢 Approval recommended
The functional change is small and aligned with SDK behavior; only a minor wording clarification in the new comment was suggested.
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24464/wasm-skia-net9/index.html |
|
|
|
Tick the box to add this pull request to the merge queue (same as
|
|
@Mergifyio backport servicing/6.8 |
✅ Backports have been createdDetails
|
|
@Mergifyio backport release/stable/6.7 |
✅ Backports have been createdDetails
|
…r-24464 fix(ci): Drop SourceLink package, use the SDK's (backport #24464)
…6.7/pr-24464 fix(ci): Drop SourceLink package, use the SDK's (backport #24464)
GitHub Issue: closes #24463
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
Every CI build has been failing during restore since the advisory database refreshed on 2026-09-09:
It hit 17 projects and took down
Build - Native Binaries (macOS),Tests - Unit Tests, and everyWebAssembly Skia Runtime Testsjob — those last ones fail while buildingUno.NUnitTransformTool, so they never reach a single test.Root cause
src/Directory.Build.propscarried an explicitPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0".Since .NET SDK 8.0.100 the SDK ships SourceLink itself and imports it implicitly — but
Microsoft.NET.Sdk.SourceLink.propsskips that import whenever aMicrosoft.SourceLink.*package is referenced:So the reference was pushing the SDK's current copy aside and pinning the three-year-old 8.0.0
Microsoft.Build.Tasks.Gitin its place.There is no
8.0.1to bump to — the package is now versioned with the SDK band (10.0.x/11.0.x), so bumping thePackageReferencewould just re-introduce the version skew the implicit import exists to avoid. Deleting it is the fix: the SDK's SourceLink takes over.The surrounding
PropertyGroupis untouched, soPublishRepositoryUrl, the.pdb-in-.nupkgsetting, and theEmbedUntrackedSources=falseworkaround for mono/linker#1409 all still apply.Validation
Restore —
Uno.NUnitTransformToolinRelease, red before / green after:error NU1902: … Microsoft.Build.Tasks.Git 8.0.0 …Restored … (in 150 ms)Restore (full CI scope) —
build/filters/Uno.UI-packages-reference.slnfinRelease, on the exact CI SDK (11.0.100-preview.7.26381.103frombuild/ci/net11/_global.json): clean, zeroNU190x, zero errors.Compile —
Uno.NUnitTransformToolbuildsReleasewith 0 errors.SourceLink still works — generated
obj/Release/Uno.NUnitTransformTool.sourcelink.json:{"documents":{"D:\\Work\\uno\\…\\*":"https://raw.githubusercontent.com/unoplatform/uno/611bb279f91e55c89e51ec767746a21890461722/*"}}and the evaluated properties:
PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01Jox2uQ5z5SLRqfrhGMg2ZX