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

后端 未结 2 797
[愿得一人]
[愿得一人] 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.

    0 讨论(0)
  • 2021-01-18 16:17

    I do not know simpler way, and extract interface descriptions via Reflector. However in VS 2010 Microsoft will do this for you automatically.

    0 讨论(0)
提交回复
热议问题