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 trialRodrigo Muñoz
Courses Plus Student 20,171 PointsHow can I run the .exe file compiled from C# on a macbook?
After compiling the program I'm wondering how can we run it. What are the options? I tried double-clicking but it opened the Xamarin Profiler
1 Answer
Eric Wilson
9,380 PointsYou will need to run it from the command line. After compiling your project, you can run it using the mono example.exe
command.
You can also combine your compile and run commands like this:
mcs -out:example.exe *.cs && mono example.exe
.