Skip to content

fix: resolve NU1605 blocking TodoApp.Uno restore by bumping Uno.Sdk to 5.6.54#527

Open
adrianhall wants to merge 1 commit into
CommunityToolkit:mainfrom
adrianhall:issues/506
Open

fix: resolve NU1605 blocking TodoApp.Uno restore by bumping Uno.Sdk to 5.6.54#527
adrianhall wants to merge 1 commit into
CommunityToolkit:mainfrom
adrianhall:issues/506

Conversation

@adrianhall

Copy link
Copy Markdown
Collaborator

Summary

Resolves the NU1605 restore blocker for #506. CommunityToolkit.WinUI.Behaviors 8.2.250402 (pinned in samples/todoapp/TodoApp.Uno/Directory.Packages.props) floors Uno.WinUI at >= 5.5.87, but Uno.Sdk 5.4.5 (the previous global.json pin) resolves Uno.WinUI to 5.4.22, causing:

error NU1605: Detected package downgrade: Uno.WinUI from 5.5.87 to 5.4.22
  TodoApp.Uno -> CommunityToolkit.WinUI.Behaviors 8.2.250402 -> Uno.WinUI (>= 5.5.87)
  TodoApp.Uno -> Uno.WinUI (>= 5.4.22)

on every head (android, ios, maccatalyst, windows, browserwasm, desktop) - not just the desktop head #506 originally reported (confirmed in this comment).

Changes

  • Bumped Uno.Sdk in samples/todoapp/TodoApp.Uno/global.json from 5.4.5 to 5.6.54 (the latest stable 5.x release), which resolves Uno.WinUI to 5.6.99, clearing the >= 5.5.87 floor. Confirmed via nupkg/nuspec inspection that this is the smallest Uno.Sdk change that stays within the current major version (avoids the larger 6.x migration effort called out in Investigate resolving NU1903 for Tmds.DBus in Uno desktop sample #506).
  • Updated the NOTE comments in build-samples.yml and build-samples-todoapp-uno.yml to reflect the new state.

What this does NOT resolve

Given the above, the todoapp-uno CI job (build-samples-todoapp-uno.yml) is intentionally left unwired in build-samples.yml - re-enabling it today would turn all-samples-built red on every future PR due to #525's build failure. It should be re-wired once #525 (at minimum) is resolved.

Validation

Follow-ups filed

Fixes #506

…o 5.6.54 (CommunityToolkit#506)

CommunityToolkit.WinUI.Behaviors 8.2.250402 (pinned in
samples/todoapp/TodoApp.Uno/Directory.Packages.props) floors Uno.WinUI at
>= 5.5.87, but Uno.Sdk 5.4.5 (the previous global.json pin) resolves
Uno.WinUI to 5.4.22, causing a NU1605 package-downgrade restore error on
every head (android, ios, maccatalyst, windows, browserwasm, desktop) -
not just the desktop head CommunityToolkit#506 originally reported.

Bump Uno.Sdk in samples/todoapp/TodoApp.Uno/global.json from 5.4.5 to
5.6.54 (the latest stable 5.x release), which resolves Uno.WinUI to
5.6.99, clearing the floor. Confirmed via 'dotnet restore' that NU1605 is
gone on the desktop, windows, and browserwasm heads (android/ios/
maccatalyst require workloads not available in this environment).

This does NOT resolve the original NU1903 finding (Tmds.DBus 0.16.0,
GHSA-xrw6-gwf8-vvr9) - Uno.WinUI.Runtime.Skia.X11 keeps floating
vulnerable Tmds.DBus 0.16.0 through the entire 5.x line and only
switches to the patched Tmds.DBus.Protocol starting at Uno.WinUI
6.0.465, which requires a major-version bump. Filed as a follow-up:
CommunityToolkit#524.

Restoring cleanly also surfaced two more pre-existing, unrelated issues
that were previously masked by NU1605 (never surfaced because no head
ever restored successfully before):

- Every Skia-based head (desktop, browserwasm, and almost certainly
  android/ios/maccatalyst) fails to BUILD with UXAML0001
  (EventTriggerBehavior could not be found), because
  CommunityToolkit.WinUI.Behaviors resolves a dev-prerelease
  Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI package on those
  heads instead of the real Microsoft.Xaml.Behaviors.WinUI.Managed
  package (which the windows head still gets). Filed as a follow-up:
  CommunityToolkit#525.
- The browserwasm head surfaces two more NU1903 findings for
  System.Security.Cryptography.Xml 8.0.2. Filed as a follow-up: CommunityToolkit#526.

Given the above, the todoapp-uno CI job (build-samples-todoapp-uno.yml)
is intentionally left unwired in build-samples.yml for now - re-enabling
it today would turn all-samples-built red on every PR due to CommunityToolkit#525.
Updated the NOTE comments in both workflow files to reflect the new
state.

Fixes CommunityToolkit#506
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.

Investigate resolving NU1903 for Tmds.DBus in Uno desktop sample

1 participant