NanosSharp 0.2.0

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

NanosSharp

The .NET scripting API for nanos world servers. Reference this package to write server packages in C# with full IDE support, the NanosSharp runtime on the server provides the assembly at runtime.

public sealed class Gamemode : Package
{
    protected override void OnStart() => Player.OnReady += player => player.SendMessage("Hello from C#!");
}
  • Typed API generated from the nanos world server and its API definitions
  • Typed events, [ServerEvent] handlers and overridable entity hooks
  • async/await on the main thread, Lua interop through Exports

Create a package with the templates:

dotnet new install NanosSharp.Templates
dotnet new nanossharp-script -n MyGamemode

Documentation: https://nanossharp.dasdarki.de

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

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
0.2.0 34 10/19/2026
0.1.1 67 10/15/2026
0.1.0 37 10/15/2026