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

Proposal: Proxy/Stub Generation #1853

Open
shmuelie opened this issue Oct 28, 2024 · 0 comments
Open

Proposal: Proxy/Stub Generation #1853

shmuelie opened this issue Oct 28, 2024 · 0 comments

Comments

@shmuelie
Copy link

Summary

One of the biggest gaps between using IDL to generate a WinMD and using CsWinRT is that with IDL proxy/stub marshaling can be used instead of metadata based marshaling (MBM). I would propose exposing support for generating the proxy/stub code.

Rationale

There are cases where proxy/stub marshaling is required making usage of CsWinRT authored components harder

Important Notes

  • Technically, you could generate IDL from the WinMD and then use that for the proxy/stub code but that be very hacky and just asking for issues.

Open Questions

  • Should the generated code be C# that can just be NativeAOT compiled for usage from native code?
  • Or should it be native code from the start?
  • Maybe a middle group of generating IDL directly that can just be used to create proxy/stub code from?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant