How do I generate COM interop proxies into C# source code?

后端 未结 2 799
[愿得一人]
[愿得一人] 2021-01-18 16:00

This questions is a follow up on an answer by Paul Alexander to the question \"Should interop assemblies be signed?\".

Depending on how complex your I

2条回答
  •  礼貌的吻别
    2021-01-18 16:13

    Take a look at the following MSDN article:

    • How to: Create Wrappers Manually (Talks about how to create your interop assembly manually.)

    Once you've got the interop assembly, use a tool like Reflector to disassemble it and generate the raw C# source. Reflector.FileDisassembler makes this really easy.

    Now you can include the generated C#/VB sources directly into your assembly.

提交回复
热议问题