简体   繁体   English

我可以在我的C#GUI应用程序中构建控制台应用程序吗?

[英]Can I build a console application into my C# GUI application?

Is it possible to include a command line utility in my C# WinForm Application? 是否可以在我的C#WinForm应用程序中包含命令行实用程序? To be more specific, is it possible to compile a command line util into an .exe file so that I can write a GUI to control the command line tool? 更具体地说,是否可以将命令行util编译为.exe文件,以便我可以编写GUI来控制命令行工具?

If you have a dependency on another application, then packaging that utility inside your EXE is a bad idea, because that means every time that dependency is updated, you should be updating your application. 如果您依赖于另一个应用程序,那么在EXE中打包该实用程序是一个坏主意,因为这意味着每次更新依赖项时,您应该更新您的应用程序。 I would just build your windows application and help the user find the required EXE. 我只是构建您的Windows应用程序,并帮助用户找到所需的EXE。 This is how Exact Audio Copy works which relies on another 3rd party application for encoding (specifically LAME ). 这就是Exact Audio Copy的工作原理,它依赖于另一个第三方应用程序进行编码(特别是LAME )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM