Repository navigation
Recognize Uno WinUI without selecting UWP XAML - #70
Open
Sergio0694 wants to merge 4 commits into
Open
Sergio0694 wants to merge 4 commits into
Sergio0694 wants to merge 4 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sergio0694
marked this pull request as ready for review
October 14, 2026 01:31
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
rudyhuyn
approved these changes
Oct 15, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #33.
Summary
Microsoft.UI.Xaml.DependencyObject:Uno.UIfor existing versions orUno.WinUIfor Uno 7.0 and later. Detection remains independent of reference display paths and class/interface shape; missing, ambiguous, and unrelated types do not select Uno.Microsoft.UI.Xamlmarkup-extension and converter helpers with the Windows resource loader and optionalWindows.Globalization.ApplicationLanguagesresolver, without requiringUseUwp=trueor UWP XAML compatibility shims.ReswPlusAppTypeproperty to override automatic detection.Autoremains the default; explicitWindowsAppSDK,UWP, orUnoWinUIoverrides both detected references and the legacyUseUwpfallback. Invalid values reportRESWP0021and stop generation rather than silently falling back.Separate follow-up commits
abe8863: recognize the Uno 7Uno.WinUIassembly, with expanded detection and cache-transition coverage.e9ced7b: add the opt-in application-model override, diagnostics, packaging integration, documentation, and tests.Configuration
For an Uno application, an override can be restricted to non-Windows target frameworks so that a Windows App SDK head keeps automatic detection:
Supported names are case-insensitive and ignore surrounding whitespace. Unset, empty, or
Autopreserves detection and the existingUseUwpfallback. The override selects the generated APIs; it does not add platform references.Validation
UseUwp, strict invalid-value handling, culture-independent parsing, interfaces and application-language options, normalized equality/hash behavior, option-only cache invalidation, and removal/restoration of generated sources.Autoreports the expectedRESWP0005.UseUwp=trueor compatibility shims.Android validation is compile-only, not UI/runtime testing. Acceptance probes intentionally suppress the existing markup-extension deprecation warning while checking its type bindings.
Existing limitation
The unchanged macro helpers can produce
Uno0001warnings for Windows APIs Uno does not implement. This limitation is documented in the FAQ; these diagnostics are not suppressed by this change.