NetObsBindings 32.0.0

dotnet add package NetObsBindings --version 32.0.0
                    
NuGet\Install-Package NetObsBindings -Version 32.0.0
                    
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="NetObsBindings" Version="32.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetObsBindings" Version="32.0.0" />
                    
Directory.Packages.props
<PackageReference Include="NetObsBindings" />
                    
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 NetObsBindings --version 32.0.0
                    
#r "nuget: NetObsBindings, 32.0.0"
                    
#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 NetObsBindings@32.0.0
                    
#: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=NetObsBindings&version=32.0.0
                    
Install as a Cake Addin
#tool nuget:?package=NetObsBindings&version=32.0.0
                    
Install as a Cake Tool

NetObsBindings

NuGet version (NetObsBindings)

NetObsBindings is a library that provides .NET bindings for Open Broadcaster Software (OBS).

These bindings are generated from the OBS repository, specifically libobs and obs-frontend projects.

The approach taken is to generate a static class per header file via ClangSharp generator. This means, that, for example, you could find functions exported from the obs-service.h file in the ObsService C# class.

How to use these bindings?

These bindings can be used to create your own plugin in C#. There is one caveat: make sure you are publishing the plugins as NativeAOT libraries, this is essential to make it work due to the plugin model of OBS.

Examples:

  • samples folder contains a simple plugin example.
  • more comprehensive example - ObsCSharpExample by @YorVeX

    Example for an OBS plugin written in C# containing various standard items like output, filter, source or a settings dialog in the OBS Tools menu.

Plugins made using this library:


How to generate bindings locally?

In order to generate bindings locally, please use the build.ps1 script. Make sure that you have ClangSharpPInvokeGenerator dotnet tool installed.

This script will:

  1. Clone the OBS repository
  2. Generate bindings for all required modules
  3. Insert the version of the OBS library to Obs.Version.cs file.

NB: to change the OBS version - modify the $GitTag variable in the ./init_obs.ps1 script. Also please update the package version to indicate the OBS version that it is generated from. E.g. 30.0.2.0 means that the bindings were generated from the OBS version 30.0.2.


Originally, these bindings generated in the blog post https://sharovarskyi.com/blog/posts/clangsharp-dotnet-interop-bindings/

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
32.0.0 141 9/26/2025
30.1.2 315 4/11/2024
30.0.2 901 12/11/2023
0.0.1.38-alpha 242 10/8/2023
0.0.1.37-alpha 186 10/4/2023
0.0.1.35-alpha 255 5/7/2023
0.0.1.34-alpha 236 4/17/2023
0.0.1.33-alpha 369 4/8/2023
0.0.1.32-alpha 231 3/23/2023
0.0.1.31-alpha 223 3/12/2023
0.0.1.30-alpha 211 3/12/2023
0.0.1.29-alpha 231 2/11/2023
0.0.1.28-alpha 224 2/11/2023
0.0.1.27-alpha 213 2/10/2023
0.0.1.26-alpha 243 2/5/2023
0.0.1.25-alpha 238 1/31/2023
0.0.1.24-alpha 229 1/31/2023
0.0.1.23-alpha 221 1/28/2023
0.0.1.22-alpha 257 1/22/2023
0.0.1.21-alpha 229 1/22/2023
0.0.1.20-alpha 243 1/22/2023
0.0.1.19-alpha 239 1/22/2023
0.0.1.18-alpha 223 1/22/2023
0.0.1.17-alpha 231 1/16/2023
0.0.1.16-alpha 247 1/14/2023
0.0.1.15-alpha 229 1/14/2023
0.0.1.14-alpha 305 9/18/2022
0.0.1-alpha9 242 7/30/2022
0.0.1-alpha8 257 7/30/2022
0.0.1-alpha7 292 2/20/2022
0.0.1-alpha6 297 2/20/2022
0.0.1-alpha5 304 2/20/2022
0.0.1-alpha4 310 2/20/2022
0.0.1-alpha3 294 2/20/2022
0.0.1-alpha2 305 2/20/2022
0.0.1-alpha13 254 7/30/2022
0.0.1-alpha12 248 7/30/2022
0.0.1-alpha11 262 7/30/2022
0.0.1-alpha10 276 7/30/2022
0.0.1-alpha1 292 2/20/2022
0.0.1-alpha 311 2/20/2022