Can't get Console.Write to work in my console app

T

tshad

I am using VS 2005 and just built a simple application that opens an xml
file and I want to put the table names on the console.

But when I try to use Console.Write (or Console.Readline), I get an error:

Error 1 The name 'Console' does not exist in the current context

How can that be - this is a Console application?

Thanks,

Tom
 
A

Arne Vajhøj

tshad said:
I am using VS 2005 and just built a simple application that opens an xml
file and I want to put the table names on the console.

But when I try to use Console.Write (or Console.Readline), I get an error:

Error 1 The name 'Console' does not exist in the current context

How can that be - this is a Console application?

Do you have a:

using System;

?

Arne
 

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