SdlSharp 1.0.0-preview.1

This is a prerelease version of SdlSharp.
dotnet add package SdlSharp --version 1.0.0-preview.1
                    
NuGet\Install-Package SdlSharp -Version 1.0.0-preview.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SdlSharp" Version="1.0.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SdlSharp" Version="1.0.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="SdlSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SdlSharp --version 1.0.0-preview.1
                    
#r "nuget: SdlSharp, 1.0.0-preview.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SdlSharp@1.0.0-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SdlSharp&version=1.0.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SdlSharp&version=1.0.0-preview.1&prerelease
                    
Install as a Cake Tool

SDL# — SDL3 for .NET 10

SDL3 CI

main contains the C# bindings for SDL 3.4.18. Applications using SDL2 should stay on their existing package version; the sdl2 maintenance branch contains that API and its tutorials.

  • SdlSharp wraps SDL3 graphics, audio, input, and system APIs. Its native dependency is SdlSharp.Redist.
  • SdlSharp.ImGui adds Dear ImGui 1.93 and the SDL3 GPU backend. It brings in SdlSharp and ImguiSharp.Redist. The packaged ImGui native binaries target Windows and macOS.

To try SDL3 from source, install the .NET 10 SDK and run dotnet run --project Samples/Lifecycle. For an interactive GPU example, run dotnet run --project Samples/ImGuiDemo.

SDL3 is a breaking change for SDL2 consumers. Start with the SDL3 samples. Dispose acquired camera frames, pixel locks, and GPU maps when finished; borrowed views are valid only while their native owner is alive. The API and ownership notes cover the remaining migration details.

See the release instructions for package versions, validation, and publishing.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SdlSharp:

Package Downloads
SdlSharp.ImGui

Dear ImGui bindings for SdlSharp, using SDL3 GPU backend.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-preview.1 65 11/14/2026
0.9.3-alpha 1,095 9/17/2020