.netmacos

Can you install and run apps built on the .NET framework on a Mac?


I need to use/continue developing a desktop app developed using .NET on my Mac. Is there a .NET framework 4.0 available for Mac? Would this allow running and developing of .NET-based apps on a Mac?

Another option that i am considering is using a windows virtual machine on the Mac.


Solution

  • You can use a .NET environment with Visual Studio Code

    Alternatives:

    1. Installing the Mono Project runtime. It allows you to re-compile the code and run it on a Mac, but this requires various alterations to the codebase, as the fuller .NET Framework is not available (also, WPF applications aren't supported here either).

    2. Virtual machine (VMWare Fusion perhaps)

    3. Update your codebase to .NET Core, (before choosing this option take a look at the migration process).

      • .NET Core is an open-source, free framework and is available on Windows, macOS, and Linux