Skip to content

fix(sdk)!: Remove the Prism Uno Feature - #26014

Merged
MartinZikmund merged 3 commits into
unoplatform:masterfrom
ajpinedam:dev/anpi/fix.sdk.remove.prism.feature
Nov 4, 2026
Merged

MartinZikmund merged 3 commits into
unoplatform:masterfrom
ajpinedam:dev/anpi/fix.sdk.remove.prism.feature

Conversation

@ajpinedam

Copy link
Copy Markdown
Contributor

GitHub Issue: closes unoplatform/uno-private#2504

PR Type:

🐞 Bugfix

What changed? 🚀

Current behavior. The Prism Uno Feature makes the Uno.Sdk reference Prism.DryIoc.Uno.WinUI, Prism.Uno.WinUI and Prism.Uno.WinUI.Markup 9.0.537. That's the latest Prism on nuget.org, and it was built against Uno Platform 5.3, so an app that lists Prism doesn't build on 7.0. Reproduced with a blank 7.0 app (Uno.Sdk 7.0.0-dev.130, net10.0-desktop):

  • Prism.Uno.WinUI 9.0.537 pulls in Uno.Extensions.Hosting.WinUI 4.2.2, whose Uno 6 package layout fails the build with UNOB0023. The error names Hosting, not Prism.
  • With Hosting forced to 8.0, the build fails with CS0012 (CoreDispatcher in the removed Uno.dll), from the old XAML Behaviors package and from Prism's own ItemMetadata and InvokeCommandAction.
  • Loaded against the 7.0 Uno.UI.dll, those two Prism types throw TypeLoadException: they implement DependencyObject as an interface. Regions use ItemMetadata for every view, so there is no app-side workaround.

Prism's port to Uno 7 (PrismLibrary/Prism#3450) is merged but not published on nuget.org.

What this PR changes. Prism is the only third-party package in the Uno.Sdk manifest that is built against Uno itself, so every Uno major breaks it until Prism ships a new build. This removes it from the Uno.Sdk: apps reference Prism's packages directly.

  • Removes the Prism package group, the Prism Uno Feature, the PrismVersion property and their build-schema entries.
  • A Prism entry still listed in UnoFeatures is dropped, as Lottie and NativeRenderer are, and reported as a new warning, UNOB0035, with the migration steps. Before, it would have been an "Unable to parse 'prism'" warning followed by CS0246 errors.
  • Navigation is no longer left out when Prism is also listed.
  • Docs: UNOB0035 in the build error codes, a row in the 7.0 migration guide's package table, and Prism removed from the Uno.Sdk features and properties tables.

UNOB0034 is claimed by #25987, so this takes UNOB0035. #25696 also still needs a free code.

Not in this PR: uno.templates has its own copy of the manifest and a dead usePrism block, and aka.platform.uno/UNOB0035 still needs to be created.

Validation

  • Unit tests (Uno.UI.Tasks.Tests, run locally on net10.0): the new Given_UnoSdkPrismFeature (8 cases) and the existing Given_UnoSdkReactorFeature and Given_UnoSdkRendererFeature all pass (43). With master's SDK targets swapped back in, 7 of the 8 new cases fail; the 8th is the case with no Prism listed.
  • Compile: Uno.Sdk.csproj builds.
  • Not run: an end-to-end app build against a locally packed Uno.Sdk.

PR Checklist ✅

Breaking change. An app that lists Prism in UnoFeatures no longer gets Prism packages from the Uno.Sdk, and the build reports UNOB0035. To migrate, remove Prism from UnoFeatures and add a PackageReference to Prism.DryIoc.Uno.WinUI in the app (or Prism.Uno.WinUI in a library) with a Prism release built for Uno Platform 7.0. PrismVersion is ignored. The version the feature used to pin doesn't build on 7.0, so no app that builds today loses anything.

🤖 Generated with Claude Code

@github-actions github-actions Bot added area/code-generation Categorizes an issue or PR as relevant to code generation kind/documentation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk labels Nov 4, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@MartinZikmund
MartinZikmund merged commit 98c20a3 into unoplatform:master Nov 4, 2026
49 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/code-generation Categorizes an issue or PR as relevant to code generation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants