Skip to content

Pin Microsoft.Windows.Compatibility to the patched 10.0.13 for the wa… - #17

Merged
Ktechen merged 1 commit into
masterfrom
fix/nu1902-pkcs
Oct 21, 2026
Merged

Ktechen merged 1 commit into
masterfrom
fix/nu1902-pkcs

Conversation

@Ktechen

@Ktechen Ktechen commented Oct 21, 2026

Copy link
Copy Markdown
Owner

…sm head

Uno.Sdk 6.5.36 pins Microsoft.Windows.Compatibility to 10.0.7 for the browserwasm head only, through its packages.json group WindowsCompatibility and Uno.Implicit.Packages.ProjectSystem.Wasm.targets. That carries System.Security.Cryptography.Pkcs 10.0.7, which GHSA-2fmv-rv2c-59x7 flags as moderate, so NuGet raises NU1902 and TreatWarningsAsErrors turns it into a build error. Restore covers every target framework regardless of the -f flag, so it broke builds of all heads and not only wasm.

10.0.13 is the first patched 10.0.x release. Setting it through the SDK per-group override property WindowsCompatibilityVersion avoids both a direct reference to a package the app never calls and enabling transitive pinning across central package management. Drop the line once the Uno.Sdk pinned in global.json ships 10.0.13 or newer.

Verified: Pkcs now resolves to 10.0.13 and all four buildable heads build with zero errors without any NU1902 suppression.

(cherry picked from commit 2d46c19)

…sm head

Uno.Sdk 6.5.36 pins Microsoft.Windows.Compatibility to 10.0.7 for the browserwasm head only, through its packages.json group WindowsCompatibility and Uno.Implicit.Packages.ProjectSystem.Wasm.targets. That carries System.Security.Cryptography.Pkcs 10.0.7, which GHSA-2fmv-rv2c-59x7 flags as moderate, so NuGet raises NU1902 and TreatWarningsAsErrors turns it into a build error. Restore covers every target framework regardless of the -f flag, so it broke builds of all heads and not only wasm.

10.0.13 is the first patched 10.0.x release. Setting it through the SDK per-group override property WindowsCompatibilityVersion avoids both a direct reference to a package the app never calls and enabling transitive pinning across central package management. Drop the line once the Uno.Sdk pinned in global.json ships 10.0.13 or newer.

Verified: Pkcs now resolves to 10.0.13 and all four buildable heads build with zero errors without any NU1902 suppression.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
(cherry picked from commit 2d46c19)
@sonarqubecloud

Copy link
Copy Markdown

@Ktechen
Ktechen merged commit 224e81d into master Oct 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant