You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
validate-platform-sdks.sh packs at the already-published VERSION.md version, so it can validate the cached nuget.org SDK instead of the working tree #82
The packages therefore take the committed VERSION.md value.
That version is written by the release commit, so on any branch or PR it is a version that has already been published. Today it is 2.31.3-pre.1.
The script then pins the consumer's global.jsonmsbuild-sdks to that version, and the generated nuget.config lists nuget.org alongside the local feed (L48-L66).
The repo's own test harness explains why this is unsafe. In test/Sdk.Examples.Tests/Infrastructure/SdkFeed.cs (L19-L31), NuGet resolves msbuild-sdks from the global packages folder before any configured source. Packing at the bare VERSION.md value collides with the published package, and "on a machine that has that version cached the examples would silently build against the published SDK instead of the working tree". SdkFeed avoids this by packing at VERSION + "-local" + guid. The script does not.
Failure scenario
A developer has built any consumer on ktsu.Sdk 2.31.3-pre.1, so that version is in ~/.nuget/packages.
They change Sdk.Linux/Sdk.props so that RuntimeIdentifiers is wrong.
They run scripts/validate-platform-sdks.sh.
The consumers resolve the cached published SDK, and the script prints "All platform SDK validations passed".
On a fresh CI runner the cache happens to be empty, so the job is correct there mostly by luck. Any runner with a warm or restored NuGet cache gets the same false pass.
Suggested fix
Preferred:
Move the Linux row into PlatformSdkResolutionTests, which already asserts the same four properties for Windows, macOS, iOS and Android through the uniquely versioned SdkFeed.
Rename the Linux demo to the Demo.<Platform> pattern the others use, so that IsLinuxProject detection works.
Delete the script and the validate-platform-sdks job in .github/workflows/dotnet-sdk.yml.
Minimal alternative: pack with -p:Version=... -p:PackageVersion=... set to a run-unique suffix, as SdkFeed does, and drop nuget.org from the generated nuget.config if nothing needs it.
Acceptance criteria
No CI path validates the platform SDKs at a version that exists on nuget.org.
The Linux TFM, OutputType, RuntimeIdentifiers and IsLinuxProject detection are asserted against a uniquely versioned local feed.
Priority: High. Any machine or runner with a warm NuGet cache validates the published SDK rather than the working tree, so a broken platform SDK could ship green. Fresh CI runners are only correct by luck.
Area:scripts/validate-platform-sdks.sh, the validate-platform-sdks job in .github/workflows/dotnet-sdk.yml, and PlatformSdkResolutionTests/SdkFeed in test/Sdk.Examples.Tests.
Activity
matt-edmondson commentedon Oct 30, 2026
Triage
scripts/validate-platform-sdks.sh, thevalidate-platform-sdksjob in.github/workflows/dotnet-sdk.yml, andPlatformSdkResolutionTests/SdkFeedintest/Sdk.Examples.Tests.PlatformSdkResolutionTestsbehind the uniquely versionedSdkFeed, then delete the script. That also removes the hardcodednet10.0literals that .NET 11 flip (due 2026-11-10): the Task 6 checklist misses Sdk.Web, Sdk.Godot and validate-platform-sdks.sh, so following it leaves net10.0 pins behind #57 has to special-case.Generated by Claude Code