Repository navigation
Can I use CsWin32 to generate WinRT interfaces? #1680
Answered
by
jevansaks
Jan Martin (catmanjan)
asked this question in
Q&A
|
For example I want to generate the interface definition for https://learn.microsoft.com/en-us/uwp/api/windows.storage.provider.istorageproviderstatusuisourcefactory.getstatusuisource?view=winrt-26100 I want to use CsWin32 rather than the SDK contracts because I can instruct it to generate NativeAOT compatible interfaces |
Answered by
jevansaks
Apr 17, 2026
Replies: 1 comment 1 reply
|
CSWinRT generates WinRT types and enables calling/implementing these in AOT compatible ways. There's some compatibility issues between WinRT and ComWrappers that Sergio Pedri (@Sergio0694) is working on improving in cswinrt 3.0. |
1 reply
Answer selected by
Sergio0694
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CSWinRT generates WinRT types and enables calling/implementing these in AOT compatible ways. There's some compatibility issues between WinRT and ComWrappers that Sergio Pedri (@Sergio0694) is working on improving in cswinrt 3.0.