Skip to content

Implicit dependency on Microsoft.Identity.Client.Extensions.Msal breaks Wasm builds #2346

Open

Description

@jeromelaban

Current behavior

1497990 removed the Microsoft.Identity.Client.Extensions.Msal dependency from net8.0, but this dependency is still required to get Wasm apps to build.

This implicitly becomes a hidden dependendy, and while uno.sdk can be adjusted to work around that, apps not using uno.sdk will fail with this:

C:\Users\jela\.nuget\packages\uno.wasm.bootstrap\8.0.16\build\Uno.Wasm.Bootstrap.targets(213,3): [00:00:01.0838302] Unhandled exception. System.Exception: Could not resolve Microsoft.Identity.Client.Extensions.Msal

To fix this, we need a similar behavior to what's done with lottie, but when wasm is detected:

https://github.com/unoplatform/uno/blob/4533fe26120d4eeb7ce4198e08d5593c91d69f50/src/AddIns/Uno.UI.Lottie/buildTransitive/Uno.UI.Lottie.targets#L9-L29

Activity

  1. added
    kind/bug
    triage/untriaged
    on Jun 13, 2024
  2. changed the title [-]Inplicit dependency on Microsoft.Identity.Client.Extensions.Msal breaks Wasm builds[/-] [+]Implicit dependency on Microsoft.Identity.Client.Extensions.Msal breaks Wasm builds[/+] on Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugtriage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions