CounterStrikeSharpTemplates 1.0.0
See the version list below for details.
dotnet new install CounterStrikeSharpTemplates::1.0.0
CounterStrikeSharpTemplates
Description
CounterStrikeSharpTemplates is a thoughtfully designed template set for kick-starting your plugin development for the great CounterStrikeSharp. The templates offer foundational structures and useful functions, along with pre-configured GitHub workflows, making the initiation of plugin development a breeze. With adaptable templates and an automated version control system, it caters to both beginners and experienced developers alike.
Installation
- Install the .NET 7.0 SDK.
- Install the templates package:
dotnet new -i CSSharpTemplates
Usage
Available templates:
default
: сreates a basic plugin template.config
: сreates a plugin template that includes a configuration file.lang
: сreates a plugin template that includes a language file.configlang
: сreates a plugin template that includes both a configuration and a language file.datamysql
: сreates a plugin template that includes a database (MySQL), language file, configuration file, and commands.
You can also add your own templates.
To specify a template type, use --t
:
dotnet new cssharp -n MyPlugin --t config
To create a new basic project (using the default
template), just:
dotnet new cssharp -n MyPlugin
For GitHub integration (which provides GitHub workflows, .gitignore, etc.), add --g
:
dotnet new cssharp -n MyPlugin --g
Customize with --np
(plugin name) and --ap
(author):
dotnet new cssharp -n MyPlugin --t datamysql --g --np "My Plugin" --ap "Author Name"
Versioning
Push commit messages with #major
, #minor
, or #patch
to update the plugin's version (when --g
is used):
git commit -m "add new feature #minor"
For manual version specification, use the workflow_dispatch
option in the GitHub Actions tab.
Environment Variables
In dotnet.yml
, modify these variables as needed:
PLUGIN_NAME
: your plugin's name.DOTNET_VERSION
: .NET version (default is7.0
).PATH_PLUGIN
: plugin path (default isaddons/counterstrikesharp/plugins/
).START_VERSION
: starting version (default is1.0.0
).USE_V_VERSION
: prefix the version number with a 'v' (default istrue
).
Credits
This project was inspired by CounterStrikeSharp. A big thank you to the creators of this project for their contribution to the community and for providing the foundation for the development of these templates.❤️
-
net7.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.