.NET控制台应用程序,它不会带来了一个控制台 [英] .Net Console Application that Doesn't Bring up a Console

查看:141
本文介绍了.NET控制台应用程序,它不会带来了一个控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我使用运行通过Windows调度调度作业的控制台应用程序。所有的通讯/从应用是电子邮件,事件日志,数据库日志。有没有什么方法可以让我晚饭preSS控制台窗口,来了?

I have a console application I'm using to run scheduled jobs through windows scheduler. All the communication to/from the application is in email, event logging, database logs. Is there any way I can suppress the console window from coming up?

推荐答案

当然。建立它作为一个WinForms应用程序,从来没有显示你的表格。

Sure. Build it as a winforms app and never show your form.

只是要小心,因为那不是一个真正的控制台应用程序了,而且也有一些环境下,您将无法使用它。

Just be careful, because then it's not really a console app anymore, and there are some environments where you won't be able to use it.

这篇关于.NET控制台应用程序,它不会带来了一个控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆