![]() |
VOOZH | about |
dotnet add package Raylib-cs --version 8.0.0
NuGet\Install-Package Raylib-cs -Version 8.0.0
<PackageReference Include="Raylib-cs" Version="8.0.0" />
<PackageVersion Include="Raylib-cs" Version="8.0.0" />Directory.Packages.props
<PackageReference Include="Raylib-cs" />Project file
paket add Raylib-cs --version 8.0.0
#r "nuget: Raylib-cs, 8.0.0"
#:package Raylib-cs@8.0.0
#addin nuget:?package=Raylib-cs&version=8.0.0Install as a Cake Addin
#tool nuget:?package=Raylib-cs&version=8.0.0Install as a Cake Tool
C# bindings for raylib, a simple and easy-to-use library to learn videogames programming (www.raylib.com)
👁 GitHub contributors
👁 Chat on Discord
👁 GitHub stars
👁 Build
Raylib-cs targets net8.0, net10.0 and uses the official 6.0 release to build the native libraries.
Raylib-cs is passively maintained. Occasional updates may be released from time to time. Pull requests may be accepted if they don't have a large maintainence burden.
This is the prefered method to get started.
dotnet new console
dotnet add package Raylib-cs
If you need to edit Raylib-cs source then you will need to add the bindings as a project (see below).
If you are new to using NuGet (or you've forgotten) and are trying to run the above command in the command prompt, remember that you need to be inside the intended project directory (not just inside the solution directory) otherwise the command won't work.
Download/clone the repo
Add to your project as an existing project.
Download/build the native libraries for the platforms you want using the official 6.0 release. NOTE: the MSVC version is required for Windows platforms
Setup the native libraries so they are in the same directory as the executable/can be found in the search path.
Start coding!
using Raylib_cs;
namespace HelloWorld;
internal static class Program
{
// STAThread is required if you deploy using NativeAOT on Windows - See https://github.com/raylib-cs/raylib-cs/issues/301
[System.STAThread]
public static void Main()
{
Raylib.InitWindow(800, 480, "Hello World");
while (!Raylib.WindowShouldClose())
{
Raylib.BeginDrawing();
Raylib.ClearBackground(Color.White);
Raylib.DrawText("Hello, world!", 12, 12, 20, Color.Black);
Raylib.EndDrawing();
}
Raylib.CloseWindow();
}
}
Feel free to open an issue. If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are welcome.
If you want to request features or report bugs related to raylib directly (in contrast to this binding), please refer to the author's project repo.
See for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Raylib-cs:
| Package | Downloads |
|---|---|
|
SharpEngine
Little 2D game engine built on RayLib |
|
|
SharpEngine.Core
Core Package of SharpEngine - 2D Game Engine |
|
|
Gum.raylib
Package Description |
|
|
rlImgui-cs
Bindings to use ImGui.net with raylib-cs |
|
|
DaveGreen.ShapeEngine
My custom made 2d game engine based on the great Raylib Framework. Main focus is being performant and only using draw functions instead of textures. Custom input, audio, savegame, collision, shape, pathfinding, ui, camera, color palette, polygon fracturing, and text system are available with a few other nice things! |
Showing the top 15 popular GitHub repositories that depend on Raylib-cs:
| Repository | Stars |
|---|---|
|
SebLague/Chess-Challenge
Create your own tiny chess bot!
|
|
|
MyraUI/Myra
UI Library for MonoGame, FNA and Stride
|
|
|
DaveGreen-Games/ShapeEngine
My custom made engine based on the great Raylib Framework. Main focus is being performant and only using draw functions instead of textures.
|
|
|
6over3/hako
An embeddable, lightweight, secure, high-performance JavaScript engine.
|
|
|
vchelaru/Gum
Flexible layout tool for creating UI on any platform
|
|
|
notgiven688/jitterphysics2
Fast, simple, and dependency-free physics engine written in C# with a clear and user-friendly API.
|
|
|
amerkoleci/JoltPhysicsSharp
JoltPhysics C# bindings
|
|
|
BotRandomness/NET-NES
NET-NES, a NES emulator, written in C#.
|
|
|
BotRandomness/CODE-DMG
CODE-DMG, a Gameboy emulator, written in C#.
|
|
|
sbarisic/NuklearDotNet
.NET binding for the Nuklear immediate mode GUI
|
|
|
sinshu/meltysynth
A SoundFont MIDI synthesizer for .NET
|
|
|
andreakarasho/TinyEcs
A tiny bevy-like archetype-style ECS library for dotnet
|
|
|
0x78654C/xTerminal
A linux like terminal for windows in C#
|
|
|
raylib-extras/rlImGui-cs
A Raylib-cs integration with DearImGui
|
|
|
ProwlEngine/Prowl.Paper
A powerful immediate mode .net UI Library powering the Prowl Game Engine!
|
| Version | Downloads | Last Updated |
|---|---|---|
| 8.0.0 | 4,240 | 5/25/2026 |
| 7.0.2 | 36,135 | 10/20/2025 |
| 7.0.1 | 35,065 | 1/31/2025 |
| 7.0.0 | 7,019 | 12/30/2024 |
| 6.1.1 | 18,590 | 6/23/2024 |
| 6.1.0 | 974 | 6/20/2024 |
| 6.0.0 | 14,583 | 1/20/2024 |
| 5.0.0 | 7,998 | 11/5/2023 |
| 4.5.0.4 | 5,952 | 8/13/2023 |
| 4.5.0.3 | 1,911 | 7/29/2023 |
| 4.5.0.2 | 22,540 | 7/10/2023 |
| 4.5.0.1 | 3,045 | 6/4/2023 |
| 4.5.0 | 3,106 | 4/15/2023 |
| 4.2.0.2 | 2,453 | 3/5/2023 |
| 4.2.0.1 | 5,224 | 10/1/2022 |
| 4.2.0 | 1,551 | 10/1/2022 |
| 4.0.0.2 | 1,713 | 9/3/2022 |
| 4.0.0.1 | 5,570 | 3/1/2022 |