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

ComWrappers support #4762

Open
kant2002 opened this issue Jun 28, 2021 · 3 comments
Open

ComWrappers support #4762

kant2002 opened this issue Jun 28, 2021 · 3 comments

Comments

@kant2002
Copy link
Contributor

I manage to work WinForms in NativeAOT context using global ComWrappers, and made attempt to do the same, but hit a roadblock with Marshal.ReleaseComObject. See dotnet/runtime#54317 for more information.

Having ComWrappers for this repo make WPF more a tiny bit more friendly for IL Trimming.
I'm willing to follow advised direction, and implement some ComWrappers for this repo, if this is what team are willing to take as contribution.

@wjk
Copy link
Contributor

wjk commented Jul 12, 2021

I’m also happy to take on this task. After we replace all the uses of ComImportAttribute with ComWrappers, someone could then attempt to rewrite the C++/CLI assemblies in a combination of unmanaged C++ and C#. If that too could be accomplished, then I could run WPF apps through NativeAOT and have everything “just work.” This would be extremely, extremely cool. I don’t know how breaking a change removing C++/CLI would be, however.

@unofficialdev
Copy link

it would be great if wpf could support ComWrappers.

@driver1998
Copy link

Speaking of C++/CLI, there is ongoing work on porting DirectWriteForwarder to C#: #5305.
@wjk

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

No branches or pull requests

6 participants