build: pin the single-file analyzer package so lock files survive SDK patches #138

Merged
james.maes merged 1 commits from build/137-sdk-lock-refresh into main 2026-11-10 18:15:50 +00:00
1 Commits
Author SHA1 Message Date
james.maesandClaude Fable 5.2 48610f54cc build: pin the single-file analyzer package so lock files survive SDK patches
The SDK adds Microsoft.NET.ILLink.Tasks implicitly, at its own runtime
version, for projects with EnableSingleFileAnalyzer. global.json rolls
forward to the newest 10.0 SDK, so each SDK patch resolved a different
version: a locked restore failed with NU1004 and an unlocked one rewrote
three lock files.

Directory.Build.targets now fixes the version through the SDK's
KnownILLinkPack item, at the one bundled with the SDK named in
global.json. The committed lock files are unchanged and restore in locked
mode with SDK 10.0.403, for a build and for the single-file publish.

Also:
- nuget-updates: commit Directory.Packages.props with the weekly bump;
  without it the pull request carried lock files that no longer matched.
- VersionPrefix: 1.1.1, the next release after v1.1.0.

Closes #137

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: James Maes <james@kof22.com>
2026-11-10 12:14:58 -06:00