How to add External .exe to my C# project?

倖福魔咒の 提交于 2021-02-08 06:27:35

问题


Can I add external .exe to my C# project so that i don't need any path to access it as outside app? I want to embed it as my project resource? Thanks in advance


回答1:


You can add file by right-clicking on the project, or drag-n-drop works.

You can add your exe in your solution and set its Build Action: Content and Copy to output Directory: Copy always.

The installer should automatically include the file.

Hope this helps



来源:https://stackoverflow.com/questions/51326810/how-to-add-external-exe-to-my-c-sharp-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!