MacOS Desktop Development

circle-info

Developing and compiling a Wisej.NET Hybrid application for macOS requires Visual Studio Code for macOSarrow-up-right and the .NET MAUI Visual Studio Code extensionarrow-up-right.

Also ensure a compatible .NET Runtimearrow-up-right and .NET MAUI workloadarrow-up-right is installed on the Mac.

Remote Hybrid

To develop a Hybrid Remote application for macOS:

  1. Copy over the Hybrid Client project to the Mac development machine.

  2. Open the folder in Visual Studio Code for mac.

  3. Ensure a .NET MAUI run target is set:

  1. Ensure only net(TF)-maccatalyst is listed under <TargetFrameworks> in the csproj file.

  2. Run the project

Local Hybrid

Local Hybrid applications are a bit more complex to build and deploy. The Wisej.NET designer is not supported on mac and Visual Studio Code.

The suggested approach is to build and develop the application on Windows and only copy over to mac when ready for distribution.

To debug a Local Hybrid application on mac:

  1. Copy over the Hybrid Client and Hybrid Local projects to the Mac development machine.

  2. Open the folder in Visual Studio Code for mac.

  3. Ensure a .NET MAUI run target is set:

  1. Ensure only net(TF)-maccatalyst is listed under <TargetFrameworks> in the csproj file for both projects (remove other targets).

  2. Run the project.

Last updated