Skip to content

fix(msal): Deploy platform MSAL assets under SkiaRenderer - #24055

Merged
kazo0 merged 2 commits into
masterfrom
dev/sb/msal-skia-runtime-assets
Aug 13, 2026
Merged

kazo0 merged 2 commits into
masterfrom
dev/sb/msal-skia-runtime-assets

Conversation

@kazo0

@kazo0 kazo0 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #20601

PR Type:

🐞 Bugfix

What changed? 🚀

Under SkiaRenderer, the two-layer runtime asset selection (RuntimeAssetsSelectorTask) replaced Uno.UI.MSAL.dll with the no-op skia flavor on every head, because IsWinRTAssembly only recognized uno, uno.ui.dispatching, and uno.foundation. As a result WithUnoHelpers() silently did nothing: no parent Activity/UIViewController on Android/iOS (MSAL fails with activity_required), and no WasmWebUi/WasmHttpFactory on WebAssembly (no popup flow at all). Full root-cause analysis in this issue comment.

This PR:

  • Adds uno.ui.msal to the WinRT assembly allowlist in RuntimeAssetsSelectorTask. Uno.UI.MSAL only depends on the WinRT layer (Uno.UWP) — verified: the shipped android flavor references only Uno/Mono.Android/MSAL, the webassembly flavor references no Uno assemblies at all — so under the two-layer mode Android/iOS/tvOS/Catalyst heads now deploy (and compile against) the lib/netX.0-<platform> flavor, and WebAssembly deploys the uno-runtime/<tfm>/webassembly flavor.
  • Fails fast with a descriptive error when an expected WinRT-layer asset is missing from a package (previously a late, opaque copy failure), and logs the WinRT-layer redirection for diagnosability.
  • Aligns the Microsoft.Identity.Client dependency floor for the net10 mobile groups in Uno.WinUI.MSAL.nuspec (4.61.3 → 4.72.1, the version the assemblies are compiled against).

No app-side or Uno.WinUI.MSAL package changes are required — the fix acts at app build time. This also transitively revives Uno.Extensions.Authentication.MSAL interactive sign-in on Skia heads (its MsalAuthenticationProvider calls WithUnoHelpers() on both the builder and the interactive request); the remaining desktop issues there (e.g. unoplatform/uno.extensions#3025 macOS token-cache setup) are a separate storage-layer concern.

Validation

  • Task-level: RuntimeAssetsSelectorTask_v0 driven directly against a synthetic uno.winui.msal package layout — skia+android → lib/net10.0-android, skia+ios → lib/net10.0-ios26.0, skia+webassembly → uno-runtime/net10.0/webassembly, single-layer skia (desktop) unchanged, non-allowlisted assemblies keep the pre-fix routing, missing declared flavor throws.
  • End-to-end (real app, Uno.Sdk 6.8.0-dev.10 / uno.winui 6.8.0-dev.21 with the patched task, UnoFeatures=SkiaRenderer, all four heads): SHA-256 of the deployed Uno.UI.MSAL.dll matches the platform flavor on android/ios/wasm and stays on the skia flavor for desktop; app compiles with bare .WithUnoHelpers() (no #if workarounds).
  • Live runtime: interactive sign-in verified on Skia-Android (Chrome custom tab opens with the parent activity supplied) and on Skia-WASM (popup flow via WasmWebUi completes; MSAL.WebUI.js embedded script is extracted and registered in uno-config.js under the Skia renderer). Desktop verified unaffected (system browser + loopback).

Follow-ups intentionally not in this PR: checked-in unit tests for Uno.UI.Tasks (no test project exists today), extending RuntimeAssetsValidatorTask to cover WinRT-layer assemblies, and the browserwasm __UNO__/HAS_UNO_* define gaps (#20875 / #17684) noted in the issue.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable) — validated via task-level scenario harness + end-to-end app validation on all four heads (see Validation above); no Uno.UI.Tasks test project exists to host a checked-in test today
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features)
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

🤖 Generated with Claude Code

https://claude.ai/code/session_01G5xeAHcheZNYf9xE8CzhYJ

kazo0 and others added 2 commits August 11, 2026 22:01
Under SkiaRenderer two-layer asset selection, Uno.UI.MSAL.dll was
replaced by the no-op skia flavor on every head, so WithUnoHelpers()
silently lost WithParentActivityOrWindow on Android/iOS and
WasmWebUi/WasmHttpFactory on WebAssembly.

Uno.UI.MSAL only depends on the WinRT layer (Uno.UWP), so add it to
the WinRT assembly allowlist: Android/iOS heads now deploy and compile
against the lib/netX.0-<platform> flavor, and WebAssembly deploys the
uno-runtime/<tfm>/webassembly flavor. Missing expected assets now fail
the build with a descriptive error instead of a late copy failure, and
the WinRT-layer redirection is logged.

Fixes #20601

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01G5xeAHcheZNYf9xE8CzhYJ
The net10.0 mobile dependency groups still pinned
Microsoft.Identity.Client 4.61.3 while the assemblies are compiled
against 4.72.1, letting NuGet resolve an older assembly than the one
Uno.UI.MSAL was built against.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01G5xeAHcheZNYf9xE8CzhYJ
Copilot AI lite review requested due to automatic review settings August 12, 2026 12:49
@github-actions github-actions Bot added area/code-generation Categorizes an issue or PR as relevant to code generation area/build Categorizes an issue or PR as relevant to build infrastructure labels Aug 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes MSAL runtime asset selection when UnoFeatures=SkiaRenderer is enabled, ensuring Uno.UI.MSAL.dll follows the WinRT-layer (platform) asset routing instead of always being replaced by the Skia/no-op flavor, restoring WithUnoHelpers() behavior on Android/iOS/WASM (issue #20601).

Changes:

  • Extends the WinRT-assembly allowlist in RuntimeAssetsSelectorTask to include uno.ui.msal so platform-specific MSAL helpers are deployed under two-layer mode.
  • Improves diagnosability by logging WinRT-layer redirections and failing fast with explicit errors when expected WinRT-layer assets are missing.
  • Updates the Microsoft.Identity.Client dependency floor for net10 mobile TFMs in Uno.WinUI.MSAL.nuspec to 4.72.1.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs Treats Uno.UI.MSAL as a WinRT-layer assembly in two-layer asset routing; adds missing-asset checks and redirect logging.
build/nuget/Uno.WinUI.MSAL.nuspec Aligns net10 mobile dependency floor for Microsoft.Identity.Client to match compiled assemblies.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@unodevops

Copy link
Copy Markdown
Contributor

pull Bot pushed a commit to AKJUS/Uno.Samples that referenced this pull request Aug 13, 2026
Adds UI/Authentication.MsalDemo, a single-project Uno sample that signs
users in with MSAL.NET against Microsoft Entra ID and calls Microsoft
Graph with the acquired token. It targets Android, iOS, WebAssembly and
Desktop and uses only Uno.WinUI.MSAL and Microsoft.Identity.Client - no
Uno.Extensions, no host builder, no DI container - so the authentication
service can be lifted into an app of any shape.

The sample narrates the flow a production app should use (token cache ->
AcquireTokenSilent -> MsalUiRequiredException -> AcquireTokenInteractive)
step by step in the UI, shows the redirect URI each head computes, and
ships MSAL-SETUP.md covering the Entra ID registration, the per-platform
redirect URIs, the project requirements per head, and a troubleshooting
table for the MSAL error codes this setup runs into most often.

MsalConfig.ClientId ships as the all-zeros placeholder for users to
replace with their own registration.

GetOrCreateApp currently supplies the parent Activity/UIViewController by
hand behind #if ANDROID/#elif IOS, with .WithUnoHelpers() commented out
directly above it. This is a temporary workaround for
unoplatform/uno#20601: with the SkiaRenderer feature enabled every head
loads the skia flavour of Uno.UI.MSAL, where .WithUnoHelpers() is a
no-op, leaving MSAL with no parent Activity on Android. The fix is
unoplatform/uno#24055; once it ships the #if block should be deleted and
the single .WithUnoHelpers() call restored. The workaround is flagged in
the code, in MSAL-SETUP.md and in the sample README.

Verified: all four heads build clean (0 warnings, 0 errors) on the
pinned stable Uno.Sdk 6.6.42.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01VCXPT7YivhZReLWZnxK2Un
@kazo0

kazo0 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio backport release/backport/6.7

@mergify

mergify Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@mergify

mergify Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

backport release/backport/6.7

❌ No backport have been created

Details
  • Backport to branch release/backport/6.7 failed

GitHub error: Branch not found

@kazo0
kazo0 merged commit 0418340 into master Aug 13, 2026
69 checks passed
@kazo0
kazo0 deleted the dev/sb/msal-skia-runtime-assets branch August 13, 2026 16:33
kazo0 added a commit to unoplatform/Uno.Samples that referenced this pull request Aug 19, 2026
…sample

unoplatform/uno#24055 made RuntimeAssetsSelectorTask follow the WinRT layer
for Uno.UI.MSAL, so every head now deploys its own flavour regardless of the
SkiaRenderer feature. Verified on a clean net10.0-browserwasm build: the
deployed Uno.UI.MSAL.dll is uno-runtime/net10.0/webassembly (27088 bytes,
carrying WasmWebUi and WasmHttpFactory), not uno-runtime/net10.0/skia
(17872), and MSAL.WebUI.js is extracted to wwwroot and listed in
config.uno_dependencies.

The sample still documented the pre-fix behaviour throughout - that the
browserwasm head loads the no-op skia flavour, that .WithUnoHelpers() does
nothing there, and that interactive sign-in cannot complete in the browser.
All of that is now false, and the #if ANDROID / #elif IOS workaround it
described was already removed in e4c1ae9.

Removed the MSAL-SETUP.md "WebAssembly and the Skia renderer" section and the
uno#20601 workaround block, folding the per-flavour table into "What supplies
the platform-specific pieces"; rewrote the AuthenticationService remarks as a
per-head description of what .WithUnoHelpers() supplies; rewrote the
WebAssembly entry in PlatformGuide and the Android/iOS steps that described
the deleted #if; restored the Cross-Origin-Opener-Policy note, which matters
again now that a popup is opened; and replaced the "nothing fixes this"
troubleshooting row with blocked-popup and COOP rows.

Statements that remain true are kept: .WithUnoHelpers() really is a no-op in
the skia flavour that Desktop and WinAppSDK load, because MSAL.NET needs
nothing from Uno there.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q5SK2yLZ9KDfLTjp4yKXVo
@kazo0

kazo0 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio backport release/stable/6.7

@mergify

mergify Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/6.7

✅ Backports have been created

Details

kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 21, 2026
…n-in

Restores, with concrete versions, the note dropped in 4a8c2ad. That note was
removed as obsolete once unoplatform/uno#24055 merged, but it is not obsolete
for consumers: the fix is in Uno.WinUI's build tasks, so no package reference
in an app expresses it, and it landed after the 6.7.x releases - verified by
scanning the shipped Uno.UI.Tasks assemblies, where the allowlist entry is
present in 6.8.0-dev.21 and later and absent in every 6.7.x.

Without it the runtime-asset selector swaps Uno.UI.MSAL.dll for its no-op Skia
flavor, WithUnoHelpers() does nothing, and interactive sign-in silently never
appears on Android, iOS or WebAssembly.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01DXaphwJj5JkL8svAvxnVnu
kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 21, 2026
Interactive MSAL sign-in on Skia Android/iOS/WebAssembly needs
unoplatform/uno#24055, which stops RuntimeAssetsSelectorTask replacing
Uno.UI.MSAL.dll with its no-op Skia flavor and thereby making WithUnoHelpers()
do nothing. That task ships in Uno.WinUI, which these packages already depend
on, so raising $(UnoVersion) is what expresses the requirement.

- Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (UnoVersion 6.0.465 -> 6.8.0-dev.46, verified
  to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step,
  or the heads sit below the libraries they reference
- Packed nuspec floor now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an
  NU1605 downgrade error rather than a silent no-op; docs corrected, since they
  claimed no package reference expressed it
- BREAKING: drop net9.0-maccatalyst from Uno.Extensions.Navigation.Toolkit.
  ModalFlyout.xaml uses utu:NativeFramePresenter in an <ios:> template and Uno's
  `ios` XAML namespace also matches catalyst, but Uno.Toolkit stopped shipping a
  maccatalyst assembly at 8.5.0-dev.29 (still true in stable 9.x). Catalyst
  consumers now resolve the package's net9.0 TFM and the not_mobile template -
  the presentation the desktop template already gave them
- Suppress IL2026 on the Exception-typed attached DP in Reactive.UI: browserwasm
  runs the trim analyzer, and RegisterAttached's propertyType reaches
  Exception.TargetSite. The property only stores the instance; nothing reads it

Verified with msbuild (dotnet build cannot build XAML-bearing WinUI libraries
here at all - UNOB0008, true on 6.0.67 too): 0 errors, and 1562 unit tests pass.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01DXaphwJj5JkL8svAvxnVnu
kazo0 added a commit that referenced this pull request Aug 23, 2026
…6.7/pr-24055

fix(msal): Deploy platform MSAL assets under SkiaRenderer (backport #24055)
kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 25, 2026
…a mobile

Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in
on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops
Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op
Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships
in Uno.WinUI, which these packages already depend on, so raising the Uno
version is what expresses the requirement.

- Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified
  to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step,
  or the heads sit below the libraries they reference. The packed nuspec floor
  now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade
  error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet;
  the migration guide says so
- Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's
  Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which
  only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild
  17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a
  Windows image with MSBuild 18
- Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm
  runs the trim analyzer with this Uno, and RegisterAttached's propertyType
  reaches Exception.TargetSite; the property only stores the instance

Docs: the minimum-version section of the migration guide and the how-to's
prerequisite.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 25, 2026
…a mobile

Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in
on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops
Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op
Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships
in Uno.WinUI, which these packages already depend on, so raising the Uno
version is what expresses the requirement.

- Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified
  to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step,
  or the heads sit below the libraries they reference. The packed nuspec floor
  now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade
  error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet;
  the migration guide says so
- Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's
  Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which
  only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild
  17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a
  Windows image with MSBuild 18
- Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm
  runs the trim analyzer with this Uno, and RegisterAttached's propertyType
  reaches Exception.TargetSite; the property only stores the instance

Docs: the minimum-version section of the migration guide and the how-to's
prerequisite.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 25, 2026
…a mobile

Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in
on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops
Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op
Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships
in Uno.WinUI, which these packages already depend on, so raising the Uno
version is what expresses the requirement.

- Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified
  to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step,
  or the heads sit below the libraries they reference. The packed nuspec floor
  now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade
  error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet;
  the migration guide says so
- Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's
  Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which
  only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild
  17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a
  Windows image with MSBuild 18
- Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm
  runs the trim analyzer with this Uno, and RegisterAttached's propertyType
  reaches Exception.TargetSite; the property only stores the instance

Docs: the minimum-version section of the migration guide and the how-to's
prerequisite.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 25, 2026
…a mobile

Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in
on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops
Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op
Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships
in Uno.WinUI, which these packages already depend on, so raising the Uno
version is what expresses the requirement.

- Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified
  to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step,
  or the heads sit below the libraries they reference. The packed nuspec floor
  now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade
  error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet;
  the migration guide says so
- Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's
  Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which
  only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild
  17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a
  Windows image with MSBuild 18
- Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm
  runs the trim analyzer with this Uno, and RegisterAttached's propertyType
  reaches Exception.TargetSite; the property only stores the instance

Docs: the minimum-version section of the migration guide and the how-to's
prerequisite.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 25, 2026
…a mobile

Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in
on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops
Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op
Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships
in Uno.WinUI, which these packages already depend on, so raising the Uno
version is what expresses the requirement.

- Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified
  to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step,
  or the heads sit below the libraries they reference. The packed nuspec floor
  now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade
  error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet;
  the migration guide says so
- Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's
  Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which
  only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild
  17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a
  Windows image with MSBuild 18
- Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm
  runs the trim analyzer with this Uno, and RegisterAttached's propertyType
  reaches Exception.TargetSite; the property only stores the instance

Docs: the minimum-version section of the migration guide and the how-to's
prerequisite.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 25, 2026
…a mobile

Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in
on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops
Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op
Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships
in Uno.WinUI, which these packages already depend on, so raising the Uno
version is what expresses the requirement.

- Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified
  to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step,
  or the heads sit below the libraries they reference. The packed nuspec floor
  now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade
  error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet;
  the migration guide says so
- Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's
  Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which
  only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild
  17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a
  Windows image with MSBuild 18
- Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm
  runs the trim analyzer with this Uno, and RegisterAttached's propertyType
  reaches Exception.TargetSite; the property only stores the instance

Docs: the minimum-version section of the migration guide and the how-to's
prerequisite.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 25, 2026
…a mobile

Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in
on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops
Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op
Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships
in Uno.WinUI, which these packages already depend on, so raising the Uno
version is what expresses the requirement.

- Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified
  to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step,
  or the heads sit below the libraries they reference. The packed nuspec floor
  now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade
  error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet;
  the migration guide says so
- Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's
  Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which
  only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild
  17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a
  Windows image with MSBuild 18
- Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm
  runs the trim analyzer with this Uno, and RegisterAttached's propertyType
  reaches Exception.TargetSite; the property only stores the instance

Docs: the minimum-version section of the migration guide and the how-to's
prerequisite.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
kazo0 added a commit to unoplatform/uno.extensions that referenced this pull request Aug 25, 2026
…a mobile

Layer 4/4 of the MSAL authentication work (#3139). Interactive MSAL sign-in
on Skia Android/iOS/WebAssembly needs unoplatform/uno#24055, which stops
Uno.Sdk's RuntimeAssetsSelectorTask replacing Uno.UI.MSAL.dll with its no-op
Skia flavor and thereby making WithUnoHelpers() do nothing. That task ships
in Uno.WinUI, which these packages already depend on, so raising the Uno
version is what expresses the requirement.

- Uno.Sdk 6.0.67 -> 6.8.0-dev.21 (Uno.WinUI 6.0.465 -> 6.8.0-dev.46, verified
  to contain the fix); Uno.Sdk.Private 6.7.0-dev.938 -> 6.8.0-dev.51 in step,
  or the heads sit below the libraries they reference. The packed nuspec floor
  now reads Uno.WinUI 6.8.0-dev.46, so an older Uno is an NU1605 downgrade
  error rather than a silent no-op. No stable 6.8.0 exists on nuget.org yet;
  the migration guide says so
- Uno.Toolkit stays pinned at 8.4.2 and Hot Design at 1.19.175: the Sdk's
  Toolkit 9.2 ships an iOS assembly built against Microsoft.iOS 26, which
  only the .NET 10 iOS workload supplies, and the Windows agents' VS MSBuild
  17.14 cannot load the .NET 10 SDK (#3139 build 229720). Un-pinning needs a
  Windows image with MSBuild 18
- Suppress IL2026 on Reactive.UI's Exception-typed attached DP: browserwasm
  runs the trim analyzer with this Uno, and RegisterAttached's propertyType
  reaches Exception.TargetSite; the property only stores the instance

Docs: the minimum-version section of the migration guide and the how-to's
prerequisite.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EqfQh5ovrPEvFGcERLiLhH
DerekRaven pushed a commit to unoplatform/Uno.Samples that referenced this pull request Sep 15, 2026
…sample

unoplatform/uno#24055 made RuntimeAssetsSelectorTask follow the WinRT layer
for Uno.UI.MSAL, so every head now deploys its own flavour regardless of the
SkiaRenderer feature. Verified on a clean net10.0-browserwasm build: the
deployed Uno.UI.MSAL.dll is uno-runtime/net10.0/webassembly (27088 bytes,
carrying WasmWebUi and WasmHttpFactory), not uno-runtime/net10.0/skia
(17872), and MSAL.WebUI.js is extracted to wwwroot and listed in
config.uno_dependencies.

The sample still documented the pre-fix behaviour throughout - that the
browserwasm head loads the no-op skia flavour, that .WithUnoHelpers() does
nothing there, and that interactive sign-in cannot complete in the browser.
All of that is now false, and the #if ANDROID / #elif IOS workaround it
described was already removed in e4c1ae9.

Removed the MSAL-SETUP.md "WebAssembly and the Skia renderer" section and the
uno#20601 workaround block, folding the per-flavour table into "What supplies
the platform-specific pieces"; rewrote the AuthenticationService remarks as a
per-head description of what .WithUnoHelpers() supplies; rewrote the
WebAssembly entry in PlatformGuide and the Android/iOS steps that described
the deleted #if; restored the Cross-Origin-Opener-Policy note, which matters
again now that a popup is opened; and replaced the "nothing fixes this"
troubleshooting row with blocked-popup and COOP rows.

Statements that remain true are kept: .WithUnoHelpers() really is a no-op in
the skia flavour that Desktop and WinAppSDK load, because MSAL.NET needs
nothing from Uno there.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q5SK2yLZ9KDfLTjp4yKXVo
DerekRaven pushed a commit to unoplatform/Uno.Samples that referenced this pull request Sep 15, 2026
…sample

unoplatform/uno#24055 made RuntimeAssetsSelectorTask follow the WinRT layer
for Uno.UI.MSAL, so every head now deploys its own flavour regardless of the
SkiaRenderer feature. Verified on a clean net10.0-browserwasm build: the
deployed Uno.UI.MSAL.dll is uno-runtime/net10.0/webassembly (27088 bytes,
carrying WasmWebUi and WasmHttpFactory), not uno-runtime/net10.0/skia
(17872), and MSAL.WebUI.js is extracted to wwwroot and listed in
config.uno_dependencies.

The sample still documented the pre-fix behaviour throughout - that the
browserwasm head loads the no-op skia flavour, that .WithUnoHelpers() does
nothing there, and that interactive sign-in cannot complete in the browser.
All of that is now false, and the #if ANDROID / #elif IOS workaround it
described was already removed in e4c1ae9.

Removed the MSAL-SETUP.md "WebAssembly and the Skia renderer" section and the
uno#20601 workaround block, folding the per-flavour table into "What supplies
the platform-specific pieces"; rewrote the AuthenticationService remarks as a
per-head description of what .WithUnoHelpers() supplies; rewrote the
WebAssembly entry in PlatformGuide and the Android/iOS steps that described
the deleted #if; restored the Cross-Origin-Opener-Policy note, which matters
again now that a popup is opened; and replaced the "nothing fixes this"
troubleshooting row with blocked-popup and COOP rows.

Statements that remain true are kept: .WithUnoHelpers() really is a no-op in
the skia flavour that Desktop and WinAppSDK load, because MSAL.NET needs
nothing from Uno there.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q5SK2yLZ9KDfLTjp4yKXVo
agneszitte added a commit to unoplatform/uno.extensions that referenced this pull request Nov 3, 2026
- global.json: Uno.Sdk 6.8.0-dev.21 -> 6.7.18 (Uno.WinUI 6.7.65), Uno.Sdk.Private 6.8.0-dev.51 -> 6.7.65
- #3163 raised the floor to 6.8.0-dev.46 for the MSAL fix unoplatform/uno#24055. 6.7 has that fix too (unoplatform/uno#24131, in every public 6.7 release from 6.7.65 on), so 6.7 is enough, and 6.7 apps can take 7.4 in the 6.7 SR3 Uno.Sdk
- samples/Directory.Packages.props: Windows SDK build tools 10.0.28000.2526 -> 10.0.28000.2705, what Uno.Sdk 6.7.18 supplies; Uno.Extensions.Hosting.WinUI requires it, and the Playground restore fails with NU1605 below it

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure area/code-generation Categorizes an issue or PR as relevant to code generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Auth] MSAL Platform specific code does not work in SkiaRenderer mode

5 participants