Repository navigation
fix(ci): Drop SourceLink package, use the SDK's (backport #24464) - #24498
Merged
Merged
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 (cherry picked from commit 730e6e4)
Co-authored-by: Xiaotian Gu <[email protected]> (cherry picked from commit e0a4c08)
4 of 5 tasks
agneszitte
approved these changes
Sep 10, 2026
Member
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24498/wasm-skia-net9/index.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
This is an automatic backport of pull request #24464 done by [Mergify](https://mergify.com).