SFSharp.Abstractions 5.0.0

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

SFSharp.Abstractions

Plugin contracts for the SF managed host. Targets .NET 10 and C# 14.

The NuGet package is SFSharp.Abstractions; the assembly remains SF.Abstractions.dll and namespaces remain under SFSharp.Abstractions.

Use IModuleContext.SF to access separate GTA and SA-MP services. Native-backed operations require the game thread; use InvokeOnMainThreadAsync from workers. Register subscriptions and resources with the module context so they are released on stop. SFModuleBase is an optional lifecycle helper; ISFModule only requires RunAsync(IModuleContext).

The host supplies this assembly. Plugin deployments must not bundle a second copy. Use ExcludeAssets="runtime" on the package reference in host plugins and exclude host DLLs from their deployment archives. Ordinary .NET tools can use normal references.

Bitstreams and SA-MP parsers are provided by the separate SFSharp.Protocol package. Version 5 changes the module lifecycle contract; rebuild plugins against the new API.

Documentation

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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SFSharp.Abstractions:

Package Downloads
SFSharp.Protocol

Native-free SA-MP packet and RPC models, parsers and RakNet-compatible managed bitstreams.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0 119 10/22/2026