DLL include in exe.file?

后端 未结 3 1695
心在旅途
心在旅途 2021-01-15 06:45

I build a project in C#. From another project I have 5 DLLs.

Is It possible to include the DLL in the exe, that I only give 1 File to people and not x files?

3条回答
  •  一个人的身影
    2021-01-15 06:54

    I realize this is an old issue, but for anyone thats looking for an answer I found the following link helpful for my situation. The following will also work for WPF.

    http://blogs.msdn.com/b/microsoft_press/archive/2010/02/03/jeffrey-richter-excerpt-2-from-clr-via-c-third-edition.aspx

    This method lets you embed dlls into your assembly by adding them to your project and set the Build Action property to Embedded Resource. The article does a good job of explaining this.

提交回复
热议问题