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

Command not found ??

I am using Windows and when i write the command Program.exe.

It write "bash: Program.exe: Command not found."

Who do i run the program ??

3 Answers

Steven Parker
Steven Parker
231,264 Points

It sounds like you're using a workspace, not your local (Window) system.

And in that case, you probably compiled your program using mcs. Anything compiled that way can be executed using the mono runtime system. So the command to start it would be:

mono Program.exe

Oh... and then is works.

thanks Steven.

Just type as Steven write "mono Program.exe" it worked for me. Remember to save befor running it in your console.