"system" could not be found 
Author Message
 "system" could not be found

Hello all,

I bought the book "Learning C#"  by Jesse Liberty.
I tried the first example: "Hello World".

This gives me an error message:

The type or namespace "system" could not be found <are you missing a using
directive or an assembly reference?>

I tried it both in a DOS box and in Visual Studio.Net, as shown in the book.
Same result.

What next?

This is the "program":

namespace NotePad
{
 class HelloWorld
 {
 static void Main()
 {
  system.console.writeline("HelloWorld");
 }
 }

Quote:
}

--
Regards,

Niek Otten



Fri, 17 Jun 2005 18:15:41 GMT  
 "system" could not be found

Quote:
> Hello all,

> I bought the book "Learning C#"  by Jesse Liberty.
> I tried the first example: "Hello World".

> This gives me an error message:

> The type or namespace "system" could not be found <are you missing a using
> directive or an assembly reference?>

> I tried it both in a DOS box and in Visual Studio.Net, as shown in the
book.
> Same result.

> What next?

> This is the "program":

> namespace NotePad
> {
>  class HelloWorld
>  {
>  static void Main()
>  {
>   system.console.writeline("HelloWorld");
>  }
>  }

It's case sensitive.
Try
System.Console.WriteLine instead


Fri, 17 Jun 2005 18:48:26 GMT  
 "system" could not be found
Thanks! A real connoisseur, this compiler!

--
Regards,

Niek Otten


Quote:


> > Hello all,

> > I bought the book "Learning C#"  by Jesse Liberty.
> > I tried the first example: "Hello World".

> > This gives me an error message:

> > The type or namespace "system" could not be found <are you missing a
using
> > directive or an assembly reference?>

> > I tried it both in a DOS box and in Visual Studio.Net, as shown in the
> book.
> > Same result.

> > What next?

> > This is the "program":

> > namespace NotePad
> > {
> >  class HelloWorld
> >  {
> >  static void Main()
> >  {
> >   system.console.writeline("HelloWorld");
> >  }
> >  }

> It's case sensitive.
> Try
> System.Console.WriteLine instead



Fri, 17 Jun 2005 19:17:12 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. "System.Net" not found

2. RegLoadKey returns "file not found".

3. WMI - "Not Found" ManagmentException

4. "Item not Found In collection" error

5. "can not find debug information" message

6. "Data source not found" message

7. RegLoadKey fails with "file not found"

8. Customizing "DLL not found" behavior

9. excel automation: "member not found" error

10. symbol "this" not found

11. "Member not found" error

12. "System not compatible with MCI device"

 

 
Powered by phpBB® Forum Software