-
Notifications
You must be signed in to change notification settings - Fork 335
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
How to create a optional package for Windows App SDK? #3112
Comments
Here is some documentation related to optional packages: https://learn.microsoft.com/windows/msix/package/optional-packages-with-executable-code @cwruss Is this supported in apps using WinAppSDK specifically? |
For CsWinRT Component, no help. |
There are multiple possible solutions. Caveats and tradeoffs depend on more details. What is a 'plugins' to you? WinRT inproc object? COM? DLL with exports? A class in a .NET assembly? Non-PE files? Other tech? Devil's in the details. |
@DrusTheAxe Just like UWP optional package. A package just work for my application. |
So today you have a UWP app some plugins in a main package? And you're changing the UWP app to a WinUI3 app and want to continue using the plugins? Or you're making a new WinUI3 app in a new main package and want the plugins to be in the package? Or you want the plugins to be separate and optionally available to users who have the new main package installed? Do you want the plugins to be shared available to both apps? Just trying to understand your goals. There's multiple ways you can use MSIX. |
Yes, I want change the UWP to WinUI3 app. And I want the plugins to be separate and optionally available to users who have the new main package installed. |
Sorry for the lag, I missed this thread. Plugins bring 2 needs to the table:
The recommended solution for #1 is The recommended solution for #2 is to tell developers to implement an OOP WinRT Server, put into a Main package and declare uap15:DependencyTargettrue</>. You use the Win11 Dynamic Dependencies API to add their package to your package graph (TryCreatePackageDependency, etc) and then you use routine WinRT practices to instantiate and interact with their object. One caveat: that AppExtension support's been around for ages (since RS5 or even earlier) but There are possible other techniques of course. Windows has a huge palette of technologies and options. But the above is the simplest and most effective solutions, thus the recommendation. |
We have some plugins in our UWP app and we want use them in new WinUI 3 app.
So anyone knows what can I do ?
Thinks!
The text was updated successfully, but these errors were encountered: