Embedded a *.exe into a dll

前端 未结 5 1487
一个人的身影
一个人的身影 2020-12-16 05:15

does somebody know how can I embedd an exe file into a dll ?

I have a tool which is an exe file that I call from c# code.

The thing is that I want to have 1

5条回答
  •  清歌不尽
    2020-12-16 05:36

    You can load an Assembly from a byte[]. This can be obtained via the ManifestResourceStream of an embedded resource.

提交回复
热议问题