- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.8k
 
Visual Studio C# Setup
        Jeffery Myers edited this page Sep 6, 2021 
        ·
        5 revisions
      
    Setting up raylib in Visual Studio is very simple.
- Download and install Visual Studio (note, if you have used unity in the past, you probably have this already)
 - Create a new C# Console Application Project from the File -> New -> Project Menu
 - After the project is created, Right click on the project and choose "managed nuget projects"
 - Choose the Browse tab and type in "Raylib".
 - Select the "raylib-cs" package from the list and choose 'install' from the panel on the right.
 - Build your raylib game in C# by using the Raylib_cs library.
 
A simple main program looks like this
using Raylib_cs;
namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Raylib.InitWindow(800, 600, "TEST");
            while (!Raylib.WindowShouldClose())
            {
                Raylib.BeginDrawing();
                Raylib.ClearBackground(Color.RAYWHITE);
                Raylib.DrawText("Hello C# Window", 10, 10, 20, Color.RED);
                Raylib.EndDrawing();
            }
            Raylib.CloseWindow();
        }
    }
}
www.raylib.com | itch.io | GitHub | Discord | YouTube
- Architecture
 - Syntax analysis
 - Data structures
 - Enumerated types
 - External dependencies
 - GLFW dependency
 - libc dependency
 - Platforms and graphics
 - Input system
 - Default shader
 - Custom shaders
 - Coding conventions
 - Integration with other libs
 
- Working on Windows
 - Working on macOS
 - Working on GNU Linux
 - Working on Chrome OS
 - Working on FreeBSD
 - Working on Raspberry Pi
 - Working for Android
 - Working for Web (HTML5)
 - Working on exaequOS Web Computer
 - Creating Discord Activities
 - Working anywhere with CMake
 - CMake Build Options
 
- raylib templates: Get started easily
 - How To: Quick C/C++ Setup in Visual Studio 2022, GCC or MinGW
 - How To: C# Visual Studio Setup
 - How To: VSCode
 - How To: Eclipse
 - How To: Sublime Text
 - How To: Code::Blocks