Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shweaver-MSFT opened this issue Jul 20, 2021 · 4 comments
Labels
question ❔ Further information is requested

Comments

@shweaver-MSFT
Copy link
Member

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.

@shweaver-MSFT shweaver-MSFT added the question ❔ Further information is requested label Jul 20, 2021
@ghost ghost added the needs triage 🔍 label Jul 20, 2021
@ghost
Copy link

ghost commented Jul 20, 2021

Hello shweaver-MSFT, thank you for your interest in Graph Controls!

I have automatically added a "needs triage" label to help get things started. Our team will look into the question and answer ASAP. Other community members may also answer the question and provide feedback 🙌

@michael-hawker
Copy link
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?

@azchohfi
Copy link
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.

@michael-hawker
Copy link
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
Labels
question ❔ Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants