From 48610f54ccfd78bf4e3b651de96e345198f49f88 Mon Sep 17 00:00:00 2001 From: James Maes Date: Tue, 10 Nov 2026 12:14:58 -0600 Subject: [PATCH] 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 Signed-off-by: James Maes --- .github/workflows/nuget-updates.yml | 3 +++ Directory.Build.props | 4 ++-- Directory.Build.targets | 25 +++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 Directory.Build.targets diff --git a/.github/workflows/nuget-updates.yml b/.github/workflows/nuget-updates.yml index 25a8821..3571e97 100644 --- a/.github/workflows/nuget-updates.yml +++ b/.github/workflows/nuget-updates.yml @@ -152,7 +152,10 @@ jobs: labels: | dependencies .NET + # Versions live in Directory.Packages.props (central package management); + # without it the pull request carries lock files that no longer match. add-paths: | + Directory.Packages.props **/*.csproj **/packages.lock.json diff --git a/Directory.Build.props b/Directory.Build.props index 2a58e4c..dfb2023 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -53,9 +53,9 @@ built-in SourceLink appends the git commit as "+" build metadata on AssemblyInformationalVersion, which the About dialog and the CLI's version output surface as the short hash. Prefix tracks the next expected - release after the last stable tag (v1.0.0). --> + release after the last stable tag (v1.1.0). --> - 1.0.1 + 1.1.1 dev diff --git a/Directory.Build.targets b/Directory.Build.targets new file mode 100644 index 0000000..12553ae --- /dev/null +++ b/Directory.Build.targets @@ -0,0 +1,25 @@ + + + + + + + + -- 2.54.0