TNCSSPluginFoundation 0.5.1

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

TNCSSPluginFoundation

About

A simple framework for CounterStrikeSharp plugin.

Provides powerful and faster development experience if your plugin feature is separated by module.

Features

  • Automated load/unload life cycle
  • Automated ConVar config generation
  • Dependency Injection with DI container
  • Module oriented development

Why don't you use CounterStrikeSharp's built-in DI?

Since CounterStrikeSharp's DI requires injection class and definition class.

But I've created this framework for faster development, and convenience.

Also, If we make plugin with module oriented development, there is no way to inject the proper initialized and working module instance to other module.

Requirements

  • CounterStrikeSharp: v333 or later

How to use

  1. Download latest binary from latest Release
  2. Put this framework to a CounterStrikeSharp's shared folder
  3. Develop plugin using this framework or Get plugin uses this framework
  4. Install the plugin to your server
  5. Run server

Development Documentation

  1. Create a new class library or go to existing project
  2. Run dotnet add package TNCSSPluginFoundation
  3. Ready to develop

Example

See Example Plugin for module initialization and DI container usage.

Also, lupercalia-mg-cs2 is heavily uses this framework.

Detailed documentation is not available yet.

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.

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.5.1 12 8/29/2025
0.5.0 15 8/29/2025
0.4.1 133 8/15/2025
0.4.0 127 8/9/2025
0.3.1 272 5/7/2025
0.3.0 236 4/29/2025
0.2.0 93 4/26/2025
0.1.3 189 4/17/2025
0.1.2 193 4/17/2025
0.1.0 208 4/15/2025
0.0.3 202 4/10/2025
0.0.2 201 4/10/2025
0.0.1 174 4/10/2025