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

Ryan Anderson
Ryan Anderson
630 Points

Can't get around the CS0103 error.

I wrote mine exactly like his, but it keeps giving me the error that "the name 'system' does not exist in the current context." Which it clearly does.... sooo is there a bug?

4 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Ryan;

Welcome to Treehouse!

Are you using system or System? Capitalization makes a difference. :wink:

Happy coding,
Ken

Ryan Anderson
Ryan Anderson
630 Points

I quite literally wrote everything EXACTLY as it was given in the instruction. The spaces, capitalization, and symbols are all the same.

Ken Alger
Ken Alger
Treehouse Teacher

Ryan;

Post the code you are using, or a link to your workspace for people to take a look at your code.

Thanks,
Ken

Ryan Anderson
Ryan Anderson
630 Points

System.Console.Write("Enter how many minutes you exercised: ");

Not sure how to post a link to the workspace... but here's the code they wanted.

Maybe https://w.trhou.se/rtvvm6aeqx is it??

Ryan Anderson
Ryan Anderson
630 Points

Nevermind, I ended up re writing the script on the framework "given" with the workspace. I would probably make sure there isn't more errors in any other scripts. This one was easier to find... but man... kinda ironic.

Thanks anyways though.

Zeljko Porobija
Zeljko Porobija
11,491 Points

In my view, the best thing would be to install Visual Studio and then to write and run the code in the video. It is not difficult to manage this in the Visual Studio. It takes some time to install it, but ... C# is unthinkable w/out Visual Studio.