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#

On the Method Return Values lesson, the code I input from the video is yielding an error. Not sure what I'm doing wrong

I replicated the example code in a new Workspace as here from the video Method Return Values here .

However, I am getting an error:

Couldn't find a project to run. Ensure a project exists in /home/treehouse/workspace, or pass the path to the project using --project.

As far as I can see, I have typed in the code just as the instructor has. What's going on?

Hi Mark, Here's the updated link to the snapshot: link

Thanks in advance

Mark Sebeck
Mark Sebeck
Treehouse Moderator 38,105 Points

Hi Ra. It seems your snapshot does not exist. Can you post a new snapshot or a copy of your code if you still need help?

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi, Ra Bha! I took a look at your updated snapshot and something is off about that workspace. First, it's missing the "obj" directory which contains files needed to build and compile that program. Also, your file is named program.cs instead of Program.cs. Yours also contains an index.html which contains C# code for some reason? :smiley: Something went wrong when creating this workspace.

I suggest the following: click the "Workspaces" link at the top of the page. Find the workspace and delete it. Go back to the video and click the "Launch Workspace" button. This will cause the workspace to be rebuilt from scratch with all the files and folders you had originally.