Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

C# C# Basics (Retired) Console I/O Start Coding

"The name 'system' does not exist in the current context"

I have copied the code exactly as it appears in the sample also copied the code on the page and I get this error when trying to run the program.cs

treehouse:~/workspace$ mcs Program.cs
Program.cs(6,7): error CS0103: The name `system' does not exist in the current context
Compilation failed: 1 error(s), 0 warnings

2 Answers

Seth Kroger
Seth Kroger
56,403 Points

Programming languages are very picky about capitalization. It should be System, not system.

I even copied the sample that's under the video. In not on my computer but I believe it was capitalized.

Where should I be following along in the video examples? I'm using the built in option in the browser (forget the name)