How can a C++ windows dll be merged into a C# application exe?

后端 未结 8 1418
心在旅途
心在旅途 2020-11-28 05:23

I have a Windows C# program that uses a C++ dll for data i/o. My goal is to deploy the application as a single EXE.

What are the steps to create such an executable

8条回答
  •  清歌不尽
    2020-11-28 05:55

    Use Fody.Costura nuget

    1. Open your solution -> Project -> Manage Nuget Packages
    2. Search for Fody.Costura
    3. Compile your project.

    That's it !

    Source: http://www.manuelmeyer.net/2016/01/net-power-tip-10-merging-assemblies/

提交回复
热议问题