The type or namespace name 'console' could not be found

G

Guest

Hi,

I am new to C#. I have created a console C# application. For some reason,
Console.Writeline is showing an error - "The type or namespace name 'console'
could not be found".

Only the default namespace 'System' is included. Is 'Console' not defined in
this namespace?

Any suggestions?
kd
 
G

Guest

Hi Morten,

Thanks for your reply.

Is there any setting available, so that case is ignored, like vb.net?

Thanks.
kd
 
J

Jon Skeet [C# MVP]

kd said:
I am new to C#. I have created a console C# application. For some reason,
Console.Writeline is showing an error - "The type or namespace name 'console'
could not be found".

Only the default namespace 'System' is included. Is 'Console' not defined in
this namespace?

It is, but it's got a capital C. If the error message is as you
included it here, you've got console.WriteLine rather than
Console.WriteLine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top