on-internet
← Community

How to replace a COM Interop with the ComWrapper Source Generator?

Stack Overflow ·

I am currently using a COM Interop DLL, generated with tlbimp, to access a proprietary COM library from C# (net8), so no source code available (TLB embedded in DLL). It works, but stops me from using Trimming and AoT. Now, I stumbled over the new ComWrapper API and its Source Generator, but can't find any resources explaining how to switch from the built-in COM Interop mechanism to the ComWrapper Source Generator with only a TLB/Interop Assembly available. From my understanding, it should be somehow possible to generate C# classes from a COM library that make use of the new ComWrapper API and

Comments

Sign in or sign up to comment and upvote.

No comments yet.