-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support preview for dll project #7
Comments
Confirmed (4) works. The problem is whether (b) is a problem since there might be name collision, the dll also somehow specified selfcontained == true, etc. But in theory it is working. The whole self contained preview app is also 60MB. Zipped 20MB. Not bad for a nuget, but not ideal either, but it's an inherent limitation of WinUI 3. Framework-dependent deployment is possible but that can complicate the setup. |
Tested some more of non-winrt dll. Finding:
|
Several details breaking things:
|
Note to self: now that cswinrt dll support PoC has been completed, it's clear that the alternative approach of building an app referencing the dll project isn't as robust as the standalone preview app approach (i.e. current main at 1fbca24). This is because building an app that reference cswinrt component requires reg-free activation via fusion manifest or package manifest. |
All of this complexity could be removed by allowing user to express that "previewing of this dll project should launch another app project"... |
Ok so winrt dll's winrt dependency's asset folder aren't copied to the dll's output dir by default... Update: Debug would copy, but release wouldn't....what. |
Using |
Adding private doesn't make a dll dependency's nuget getting copied to referencing project 🥲 Looks like there is no built-in solution that works.
|
Current situation: Dynamically loading Argh. |
CsWinRT dll support would have to be halted for now due to microsoft/CsWinRT#1564. |
Given the hacky nature of dynamic WinRT component direct mode support, I'd advice developers simply use sample app mode. Direct mode would remain supported for quirk-and-dirty scenario, but might be removed completely in the future. |
Try this first before the above:
If (4) doesn't work has to fallback to above method. Also want to prevent nuget getting too large
The text was updated successfully, but these errors were encountered: