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

Can't get passed - error CS2001: Source file ' Program.cs' could not be found.

I can't get passed this error on the console, my code is exactly the same as in the video.

I've saved my work.

Please help.

error CS2001: Source file ' Program.cs' could not be found. Compilation failed: 1 error(s), 0 warnings

2 Answers

Have you opened the Program.cs file in the file explorer? It is on the left of the screen, when you open workspaces for the first time it does not open the Program.cs file it opens a welcome.md file.

http://postimg.org/image/dz7b811jv/

John Ferguson
John Ferguson
2,223 Points

Thought I would post in case other have this issue. It might be because it is case sensitive. I was entering in mcs program.cs instead of mcs Program.cs