Reputation: 855
I've written a C# program on Visual Studio 2015, and I would like to be able to run it on Mac, and possible Linux. Is this possible?
I realise that when compiling a project from Xamarin on Mac, it's exported as a .exe, so would running the .exe compiled on Windows be runnable on Mac?
And if not, how would I make it be?
It doesn't matter if a single .exe can't be cross platform, so long as I can compile for both OS's.
Also, it doesn't matter if it actually is a .exe, so long as it can be run.
Would I be required to actually compile my C# project on a mac?
Upvotes: 1
Views: 1694
Reputation: 1382
Try to run the exe in Mac by using mono:
/Library/Frameworks/Mono.framework/Versions/Current/bin/mono --runtime=v4.0 [path-to-your-exe]
Upvotes: 2