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 trialDan Collins
310 Pointstreehouse:~/workspace$ Program.exe: command not found
// Receiving error when I run the following code:
class Program // all code is contained in class { static void Main() { System.Console.Write("How many minutes have you exercised?"); } }
/* Response is:
Compilation failed: 1 error(s), 0 warnings
treehouse:~/workspace$ mcs Program.cs
treehouse:~/workspace$ ls
Program.cs Program.exe
treehouse:~/workspace$ Program.exe
bash: Program.exe: command not found */
2 Answers
Steven Parker
231,248 PointsPrograms compiled using "mcs" should be executed using the "mono" runtime system. Try this:
treehouse:~/workspace$ mono Program.exe
Dan Collins
310 PointsThanks -- I thought mono was for Linux/Mac