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 trialRaymond Yau
811 PointsProgram.exe created, but will not run.
Hi,
Like many before me, I've got trouble running Program.exe:
I've followed every single step and ensured my code is exactly the same as the code in the video. I done the following:
Checked all the syntax (and caps),
Saved All,
mcs Program.cs,
Ls command to confirm I created the .exe file,
mono Program.exe - nothing happens... It should Print the string "Enter...",
Thrown in an extra Readline for good measure, but no luck.
Really frustrating.
2 Answers
Steven Parker
231,248 PointsYou need to rebuild your executable.
When I check the modification times on your files (using "ls -l
"), I see that the source was modified after the executable was built. Rebuilding the executable now will create one that does print out "Enter " when it is run.
I tried it myself and confirmed it.
Samuel Savaria
4,809 PointsDid you simply type "mono Program" or did you type "mono Program.exe"? In the description, you seem to be missing the .exe, I doubt that is the issue but it's worth trying.
Raymond Yau
811 Pointsmono Program.exe, is there a way I can post screenshots on this forum? It's probably best I showed an image of it.
Steven Parker
231,248 PointsScreenshots are not very useful for diagnosing issues.
You already did the right thing posting the snapshot link.
Raymond Yau
811 PointsRaymond Yau
811 PointsHey Steve,
Yeah I restarted the browser and modified the file shortly after that. I still don't see why it didn't work at first as the code itself was completely unchanged. I just simply followed the same steps again after restarting.