WinUI3 Desktop - How do I create an extensible desktop application? #1575
-
I am trying to build an extensible WinUI3 Desktop application with plugin architecture. The plugins must include their own XAML controls and executable code. The host application should not be dependent on the plugins. Is there a supported solution for this design? At the moment there do not appear to be any templates or tutorials covering this topic for WinUI3. I have tried to load plugin assemblies at runtime using a custom AssemblyLoadContext. Loading the assembly appears to work however an exception is thrown while instantiating the plugin user control 'PluginRoot'.
Ideally the control would be correctly instantiated and put into the visual tree. A replicating repo of this attempt is available here. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I am having the same issue. Have you resolved this? |
Beta Was this translation helpful? Give feedback.
-
This is now being discussed in the XAML repo in issue microsoft/microsoft-ui-xaml#6299 as noted above, so I'm going to make this one as answered in the sense that the discussion here is complete. |
Beta Was this translation helpful? Give feedback.
This is now being discussed in the XAML repo in issue microsoft/microsoft-ui-xaml#6299 as noted above, so I'm going to make this one as answered in the sense that the discussion here is complete.