Mint-SDK.Server 0.1.0

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

MiNT Multiplayer C# Server SDK

Mint-SDK.Server provides the .NET 8 API for C# server resources in MiNT Multiplayer. The NuGet package name is Mint-SDK.Server; C# namespaces use Mint.Server, and the SDK assembly is Mint.Server.Sdk.dll.

Building resources requires the .NET 8 SDK. Running them requires a MiNT Windows server with C# support and the x64 .NET 8 Runtime. Client scripts run as separate JavaScript resources.

Create a resource

Create a folder named MyResource containing these three files.

MyResource.csproj

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <AssemblyName>MyResource</AssemblyName>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <IsPackable>false</IsPackable>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Mint-SDK.Server" Version="0.1.0"
                      ExcludeAssets="runtime" />
  </ItemGroup>
</Project>

Keep ExcludeAssets="runtime": the package provides the compile-time API, and the server supplies the SDK assembly at runtime. NuGet restores the package when you build or publish the project.

MyResource.cs

using Mint.Server.Resources;
using MintServer = global::Mint.Server.Server;

namespace Mint.Resources.MyResource;

public sealed class MyResource : Resource
{
    public override void OnStart() =>
        MintServer.Logging.Log("[MyResource] C# server resource started.");

    public override void OnStop() =>
        MintServer.Logging.Log("[MyResource] C# server resource stopped.");
}

resource.toml

type = 'csharp'
main = 'bin/MyResource.dll'

Build and run

Run this command from the resource's project folder:

dotnet publish -c Release -o bin

Place the resource folder in the server's resource directory. It must contain resource.toml and the published files under bin:

resources/
  MyResource/
    resource.toml
    bin/
      MyResource.dll
      ...

Set the server's resourcesPath to this resources directory and start the server. Keep any other published dependencies with the resource. Do not copy Mint.Server.Sdk.dll into the resource; the matching assembly belongs to the server installation.

License

This SDK is licensed under the MIT License. The package includes the license text and third-party notices.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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.
  • net8.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.1.0 42 9/12/2026

Initial release of the C# server scripting SDK for MiNT Multiplayer (.NET 8).