
We will use OpenTK 4 version because it supports .NET Core.
Install VSCode and .NET Core SDK. Follow the instruction: https://code.visualstudio.com/docs/languages/dotnet
Create and an empty folder (with a name, for example: SfmlNetAndOpenTK4DotNetCore) and go to it:
cd SfmlNetAndOpenTK4DotNetCore
Create a new console application by executing this command:
dotnet new console
Add packages: SFML.NET and OpenTK 4 using this commands:
dotnet add package SFML.Net --version 2.5.0
dotnet add package OpenTK --version 4.0.0-pre9.1
Open VSCode by typing the command in the console:
code .
Copy and pasta the code below …