如何将外部 .exe 添加到我的 C# 项目? [英] How to add External .exe to my C# project?
本文介绍了如何将外部 .exe 添加到我的 C# 项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以将外部 .exe 添加到我的 C# 项目中,以便我不需要任何路径来作为外部应用程序访问它吗?我想把它作为我的项目资源嵌入?提前致谢
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
推荐答案
您可以通过右键单击项目或拖放工作来添加文件.
You can add file by right-clicking on the project, or drag-n-drop works.
您可以在您的解决方案中添加您的 exe 并设置其 Build Action: Content
和 Copy to output Directory: Copy always
.
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.
希望能帮到你
这篇关于如何将外部 .exe 添加到我的 C# 项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文