Console.WriteLine不可用 [英] Console.WriteLine Not Available

查看:73
本文介绍了Console.WriteLine不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我执行任何控制台命令(Console.WriteLine" yada yada

yada")时,控制台都不会出现。它甚至不会闪现。


我希望能够使用控制台命令。任何想法?


我在XP专业版/ SP1上运行VS.NET 2003.

解决方案

当您创建

项目时,您需要创建一个控制台应用程序。您可以通过进入项目的

属性来更改项目类型。


-

HTH,< br $>
- Tom Spink,überGeek


请回复新闻组,

所以所有人都可以受益

" Jeff S" <济******* @ Yahoo.com>在消息中写道

news:uL ************** @ TK2MSFTNGP12.phx.gbl ...

每当我执行任何控制台时命令(Console.WriteLine" yada yada
yada"),控制台不会出现。它甚至不会闪现。

我希望能够使用控制台命令。有什么想法吗?

我在XP pro / SP1上运行VS.NET 2003.



" ;杰夫S" <济******* @ Yahoo.com> schrieb

每当我执行任何控制台命令(Console.WriteLine" yada
yada yada")时,控制台都不会出现。它甚至不会闪现。

我希望能够使用控制台命令。有什么想法吗?

我正在XP pro / SP1上运行VS.NET 2003。




你选择了控制台应用程序吗?作为项目类型? (参见项目'

属性)

-

Armin

>每当我执行任何控制台命令(Console.WriteLine" yada yada

yada)时,控制台都不会出现。它甚至不会闪现。




查看IDE的内部控制台(输出窗口)如果它不是控制台

应用程序你的开发它将出现在调试器中。


尼克。


-

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \

看来你没有启用Option Strict。在项目

属性中启用它,编译器可能会为您找到错误。乔布斯很好'

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \


Whenever I execute any Console commands (Console.WriteLine "yada yada
yada"), the console does not appear. It doesn''t even flash by.

I want to be able to use Console commands. Any ideas?

I''m running VS.NET 2003 on XP pro/SP1.

解决方案

You need to have created a Console Application, when you create your
project. You can change the type of project by going into your project''s
properties.

--
HTH,
-- Tom Spink, über Geek

Please respond to the newsgroup,
so all can benefit
"Jeff S" <Je*******@Yahoo.com> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...

Whenever I execute any Console commands (Console.WriteLine "yada yada
yada"), the console does not appear. It doesn''t even flash by.

I want to be able to use Console commands. Any ideas?

I''m running VS.NET 2003 on XP pro/SP1.



"Jeff S" <Je*******@Yahoo.com> schrieb

Whenever I execute any Console commands (Console.WriteLine "yada
yada yada"), the console does not appear. It doesn''t even flash
by.

I want to be able to use Console commands. Any ideas?

I''m running VS.NET 2003 on XP pro/SP1.



Did you choose "console application" as the project type? (see project''s
properties)
--
Armin


> Whenever I execute any Console commands (Console.WriteLine "yada yada

yada"), the console does not appear. It doesn''t even flash by.



Look in the IDE''s internal console (Output window) If it''s not a console
application your developing it will appear in the debugger.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
It seems you are not enabling Option Strict. Enable it in the project
properties and the compiler might find the error for you. Jobs a good''n!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


这篇关于Console.WriteLine不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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