Building for Mac/Linux on Windows with Visual studio

Hi, I have a solution with DesktopGL and Android projects sharing code in a PCL. It currently builds fine for Windows and Android, but I want to be able to build for Linux and macOS - how can I do this?

You already did! A DesktopGL project produces a single binary that runs on Windows, Mac and Linux :slight_smile:

The exe can be run on Mac and Linux?

Yes, you do need a Mono runtime installed however. Then you can run the exe from a terminal using Mono: mono mygame.exe

1 Like

Aha, interesting - cheers for pointing me in the right direction