2dog.godotsharp 4.7.2.89

There is a newer version of this package available.
See the version list below for details.
dotnet add package 2dog.godotsharp --version 4.7.2.89
                    
NuGet\Install-Package 2dog.godotsharp -Version 4.7.2.89
                    
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="2dog.godotsharp" Version="4.7.2.89" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="2dog.godotsharp" Version="4.7.2.89" />
                    
Directory.Packages.props
<PackageReference Include="2dog.godotsharp" />
                    
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 2dog.godotsharp --version 4.7.2.89
                    
#r "nuget: 2dog.godotsharp, 4.7.2.89"
                    
#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 2dog.godotsharp@4.7.2.89
                    
#: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=2dog.godotsharp&version=4.7.2.89
                    
Install as a Cake Addin
#tool nuget:?package=2dog.godotsharp&version=4.7.2.89
                    
Install as a Cake Tool

2dog.godotsharp

The 2dog fork's GodotSharp.dll and source generator, without native engine packages. Game projects and reusable libraries should reference this package at the same version as their 2dog host. The engine depends on an exact version of these bindings.

For a Godot.NET.Sdk game, explicitly set both properties before the first restore:

<PropertyGroup>
  <DisableImplicitGodotSharpReferences>true</DisableImplicitGodotSharpReferences>
  <DisableImplicitGodotGeneratorReferences>true</DisableImplicitGodotGeneratorReferences>
</PropertyGroup>
<ItemGroup>
  <PackageReference Include="2dog.godotsharp" Version="$(TwoDogVersion)" />
  <PackageReference Include="2dog.godotsharp.editor" Version="$(TwoDogVersion)"
                    Condition="'$(Configuration)' == 'Debug' Or '$(Configuration)' == 'Editor'" />
</ItemGroup>

Define TwoDogVersion in your shared Directory.Build.props. A library using Microsoft.NET.Sdk usually only needs the core PackageReference. Editor APIs require 2dog.godotsharp.editor. The source generator runs automatically for Godot.NET.Sdk projects. A custom game project using Microsoft.NET.Sdk can set TwoDogEnableGodotSourceGenerators=true and supply GodotProjectDir.

When migrating, remove stock GodotSharp/GodotSharpEditor references in all game and library projects (including dependencies you build yourself), restore, and rebuild. A host reference does not change what a referenced game project compiles against. Older third-party packages that depend on stock bindings need a compatible package release; mixed packages fail with TDG001.

Both bindings are checked by content hash before compilation and before publish trimming. Copies of the packaged assemblies are accepted; stock or stale HintPath copies fail even when their assembly versions match. Editor bindings and the engine must match the core package version. These checks also run during publish --no-build.

The core package carries the fork's Release API, matching the engine's existing runtime API; the editor package adds the fork's Debug editor API. Native debug/editor selection remains controlled by TwoDogVariant. Packaging requires a matching fork build in TwoDogGodotSharpApiDir.

This package preserves the fork's trim annotations. It does not mark consumer assemblies as trimmable, suppress IL2125, or establish that an application's reflection is safe to trim.

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.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on 2dog.godotsharp:

Package Downloads
2dog.engine

Embed the Godot engine in your .NET applications. Reference the 2dog.engine package and it will pull in the appropriate platform-specific package (2dog.win-x64, 2dog.linux-x64, or 2dog.osx-arm64) for native library support.

2dog.godotsharp.editor

2dog fork editor C# bindings. No native engine dependencies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.7.2.95 43 9/28/2026
4.7.2.93 54 9/28/2026
4.7.2.92 57 9/27/2026
4.7.2.91 253 9/24/2026
4.7.2.90 91 9/24/2026
4.7.2.89 84 9/23/2026