Skip to content

Trim/AOT support and .WinUI package use for 'Microsoft.Identity.Client.Desktop.WinUI3' #6122

Description

@Sergio0694

I'm looking into Microsoft.Identity.Client.Desktop.WinUI3 as I'd like to use it for OneDrive integration, however I noticed a few issues with the package:

  • The TFM is just .NET 8 and (crucially) the package declares no trim/AOT support. I can also verify in ILSpy that the CsWinRT's generators for AOT didn't run, and there's no additional supporting marshalling code in the assembly.
  • The package references Microsoft.WindowsAppSDK instead of just the specific sub-packages needed

Also: why is the login flow done with a Window hosting a WebView2, rather than with the dedicated OAuth2Manager?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions