Restructure template, add configurable description, remove comments

- Remove LoadPriority override from EntryPoint.cs (defaults to Medium)
- Add Description property (was already templated as a literal, now a
  configurable PluginDescription symbol like PluginAuthor)
- Move the buildable project into content/ so CLAUDE.md, .editorconfig,
  and .gitignore never ship in a generated plugin, and the project no
  longer shares its root with them
- Remove the SkipGit symbol and its manual-instructions postAction:
  automatic git init on generation was re-verified impossible (no
  --allow-scripts equivalent on dotnet 10 SDK to bypass the Run Script
  postAction's interactive Y/N gate); VS's own New Project checkbox
  already covers this
- Add content/CLAUDE.md so every generated plugin ships with LabAPI/
  toolchain/code-style context for Claude Code, since no C#/.NET/LabAPI
  Skill exists in the catalog
- Set PluginAuthor/PluginDescription defaultValue to generic "Your
  Name"/"Your Description" placeholders instead of "YourName"/a TODO
  string
- Strip all comments from the .csproj (project code style forbids them)

Verified by generating a project from the reinstalled template and
running dotnet build (0 warnings, 0 errors) after each change.
This commit is contained in:
2026-08-27 02:09:55 +02:00
parent 2151884527
commit 68fac5b913
8 changed files with 187 additions and 107 deletions
+27
View File
@@ -0,0 +1,27 @@
using System;
using LabApi.Features.Console;
using LabApi.Loader.Features.Plugins;
namespace LabApiPluginTemplate
{
public class EntryPoint : Plugin<Config>
{
public override string Name => "LabApiPluginTemplate";
public override string Description => "TODO: describe what this plugin does.";
public override string Author => "YourName";
public override Version RequiredApiVersion { get; } = new Version("1.1.7");
public override void Enable()
{
Logger.Info($"{Name} has been enabled.");
}
public override void Disable()
{
Logger.Info($"{Name} has been disabled.");
}
}
}