Skip to content

[Question] Can the CommunityToolkit.Authentication.Uwp package be converted to a WinRT component? #130

Open

Description

@shweaver-MSFT

Does it make sense for the CommunityToolkit.Authentication.Uwp package to be a Windows Runtime Component? This would enable C++ devs to leverage the package as well.

Investigate and determine if the conversion is technically feasible.

Activity

  1. michael-hawker commented on Jul 20, 2021

    @michael-hawker
    Member

    @azchohfi if a package is just using system APIs, can it be used by a WAS/WinUI 3 app or does the package need to be explicitly built for C#/WinRT to function?

  2. azchohfi commented on Jul 20, 2021

    @azchohfi
    Collaborator

    If a managed project wants to be used by a native project, either the nuget package has to add the projections, or the user needs to do it. It makes more sense for a library, such as the Graph Controls, to expose the projections so you don't have conflicts if more than one library tries to use it, which would generate two "different" assemblies that project the same namespaces, which would be a conflict.

  3. michael-hawker commented on Jul 20, 2021

    @michael-hawker
    Member

    Thanks @azchohfi. Yeah, I think we'll explore how restrictive it is for this smaller surface to be a UWP Windows Runtime Component.

    I guess my question is how does a UWP Windows Runtime Component just using OS APIs translate to the WinUI 3 / Windows App SDK world, can they still be referenced directly as long as the OS contains those APIs or do we need to bundle them differently for the package to be consumed (by either a C# or C++ project)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question ❔Further information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions