Skip to content
Diego Giacomelli edited this page Sep 6, 2022 · 6 revisions

GeneticSharp

If you are just using the GeneticSharp library, you don't need any setup, just install the NuGet package.

.NET Core SDK

If you are using the .netstandard2.0 version, remember to install the latest .NET Core SDK from https://www.microsoft.com/net/download/

GTK# App

If you download the whole repository and you want to use the sample app GeneticSharp.Runner.GtkApp, you need to install the latest Mono version on your machine: http://www.mono-project.com/download/stable/.

Install Mono and GTK# for .NET

Building the whole solution

With Visual Studio

Just open the GeneticSharp.sln solution on Visual Studio for your platform:

  • Mac: Visual Studio for Mac
  • Windows: Visual Studio 2017

They can be downloaded from https://www.visualstudio.com/downloads/.

With Cake

Install Cake dotnet tool

dotnet tool install Cake.Tool

Building with Cake

Run the command bellow in the root folder of the repository:

dotnet cake

More about Cake: https://cakebuild.net.

Libgdiplus

If you're trying to run the unit tests on Mac/Linux you'll need to install Libgdiplus, otherwise, you can see the error The type initializer for 'Gdip' threw an exception while trying to run them.

brew install libgdiplus