Skip to content

C# installation

The library targets .NET 10 and GodotSharp 4.7.2. Your application supplies a matching Godot engine. Check compatibility first; the included gallery project is the quickest way to see the library in action.

The package ID and C# namespace are both lowercase tweens.gd. Public NuGet publication is pending; use either path below now.

Clone the repository, then add a project reference from your C# application, adjusting the path to your checkout:

Terminal window
dotnet add path/to/YourGame.csproj reference path/to/tweens.gd/csharp/tweens.gd.csproj

This is how the included gallery project consumes the library. Source lives under csharp/src/; the root solution is tweens.gd.slnx.

From the repository root:

Terminal window
dotnet pack csharp/tweens.gd.csproj -c Release -o artifacts/packages

The current development version produces tweens.gd.0.1.0.nupkg and a symbol package. In your consuming project’s NuGet.config, add the absolute path to that output directory alongside nuget.org, which supplies GodotSharp:

<configuration>
<packageSources>
<clear />
<add key="local-tweens" value="C:/path/to/tweens.gd/artifacts/packages" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>

Adjust the local path for your machine, then add this item to your application’s project file and run dotnet restore:

<ItemGroup>
<PackageReference Include="tweens.gd" Version="0.1.0" />
</ItemGroup>

Use a project reference or a package reference, not both.

Open testbed/project.godot in Godot 4.7 with .NET support and press Play. The project references the library source directly, so Godot builds both.

Continue with the C# quickstart.