一个EXE文件添加到项目中,因此,它会被复制到Bin / Debug文件夹就像一个DLL? [英] Add an EXE file to a project, so that it will be copied to the Bin/Debug folder just like a DLL?
问题描述
我需要我的C#项目执行过程中启动另一个EXE程序。该可执行文件必须放在同一文件夹中的C#程序被放置在构建解决方案,例如,debug文件夹 - 就像DLL文件的引用 - 所以,当我的团队成员从TFS检查项目出来,调试EXE文件被发现时,我的C#代码试图调用它。
I need my C# project to launch another EXE program during execution. This executable needs to be placed in the same folder as the C# program is placed on building the solution, for example, the debug folder -- just like DLL file references -- so that when my team members check the project out from TFS, and debug, the EXE is found when my C# code tries to call it.
不过,EXE不是引用本身,因此它不能被添加作为参考,尽管我希望它是围绕以同样的方式作为参考复制。
However, the EXE is not a reference per se, and so it cannot be added as a reference, even though I want it to be copied around in the same manner as a reference.
有没有这个问题?
先谢谢了。
推荐答案
您可以去该文件的属性,下副本输出目录中选择,复制如果新
You can go the properties of the file, and under Copy to output Directory select, copy if newer
这篇关于一个EXE文件添加到项目中,因此,它会被复制到Bin / Debug文件夹就像一个DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!