macOS

APSIM can be compiled using Microsoft’s Visual Studio for Mac 2017 or later. A single solution file exists in the root of the repository (ApsimX.sln). Building this solution will extract all 3rd party packages from NuGet and build everything. All executables will be built to the bin folder, but the exact output location will depend on how the solution is built (ie release vs debug). The default (debug) will cause outputs to be copied to bin/Debug/netcoreapp3.1/.

  1. Install Visual Studio for Mac

  2. Install git or a git GUI client such as SourceTree or Fork

  3. Install the .NET Core 3.1 SDK. The dotnet-install script is a simple way to do this

  4. Install GTK+3 and gtksourceview4

    brew install gtk+3
    brew install gtksourceview4
    
  5. Obtain the source code

    git clone https://github.com/APSIMInitiative/ApsimX
    
  6. Build and Run