Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,413 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)