Add LabAPI plugin dotnet new template

This commit is contained in:
2026-08-26 23:03:22 +02:00
commit 6f7cff954a
8 changed files with 369 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Your name / organization",
"classifications": [ "Common", "Library", "SCP:SL", "LabAPI", "Game Plugin" ],
"identity": "SCPSL.LabApi.PluginTemplate",
"name": "SCP: Secret Laboratory LabAPI Plugin",
"shortName": "labapi-plugin",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "LabApiPluginTemplate",
"preferNameDirectory": true,
"symbols": {
"LabApiVersion": {
"type": "parameter",
"datatype": "string",
"defaultValue": "1.1.7",
"replaces": "1.1.7",
"description": "Version of the Northwood.LabAPI NuGet package to install in the project."
},
"PluginAuthor": {
"type": "parameter",
"datatype": "string",
"defaultValue": "YourName",
"replaces": "YourName",
"description": "Name used as the plugin's author (EntryPoint's Author property)."
},
"skipRestore": {
"type": "parameter",
"datatype": "bool",
"description": "If set, skips running 'dotnet restore' automatically after creating the project.",
"defaultValue": "false"
}
},
"primaryOutputs": [
{ "path": "LabApiPluginTemplate.csproj" }
],
"postActions": [
{
"condition": "(!skipRestore)",
"description": "Restores the NuGet packages required by this project (including LabAPI).",
"manualInstructions": [
{ "text": "Run 'dotnet restore'" }
],
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
"continueOnError": true
}
]
}