diff --git a/.template.config/ide.host.json b/.template.config/ide.host.json index d0632fa..78f3963 100644 --- a/.template.config/ide.host.json +++ b/.template.config/ide.host.json @@ -6,11 +6,6 @@ "name": { "text": "Plugin Author" }, "isVisible": "true" }, - { - "id": "skipRestore", - "name": { "text": "Skip Restore" }, - "isVisible": "true" - }, { "id": "SkipGit", "name": { "text": "Skip Git" }, diff --git a/.template.config/template.json b/.template.config/template.json index ff517b5..57badb4 100644 --- a/.template.config/template.json +++ b/.template.config/template.json @@ -18,12 +18,6 @@ "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" - }, "SkipGit": { "type": "parameter", "datatype": "bool", @@ -36,7 +30,6 @@ ], "postActions": [ { - "condition": "(!skipRestore)", "description": "Restores the NuGet packages required by this project (including LabAPI).", "manualInstructions": [ { "text": "Run 'dotnet restore'" } diff --git a/CLAUDE.md b/CLAUDE.md index 831a369..74df3a4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -14,7 +14,7 @@ are ordinary project files at that point, not template scaffolding. `.template.config/template.json` sets this folder's name as the template's `sourceName` and defines one text-replacement `symbol`, `PluginAuthor` (plus -`skipRestore` and `SkipGit`, which only toggle post-generation actions and replace no +`SkipGit`, which only toggles the git-reminder post-generation action and replaces no text). The dotnet templating engine does a literal, repo-wide **string replacement** at generation time — not semantic renaming — driven by that config: @@ -51,10 +51,10 @@ Consequences: printed reminder and not an executed command. - `.template.config/ide.host.json` — Visual Studio-only UI hints for the New Project wizard. It does **not** rename any symbol (the CLI flags stay `PluginAuthor`/ - `skipRestore`/`SkipGit` — a flag can't contain a space); it only maps each symbol's - `id` to a human-readable `name.text` label (e.g. `SkipGit` → "Skip Git") shown in - VS's UI, via `isVisible: "true"` per entry (VS hides a symbol from that UI unless - explicitly marked visible here). Ignored entirely by `dotnet new` on the CLI. + `SkipGit` — a flag can't contain a space); it only maps each symbol's `id` to a + human-readable `name.text` label (e.g. `SkipGit` → "Skip Git") shown in VS's UI, via + `isVisible: "true"` per entry (VS hides a symbol from that UI unless explicitly + marked visible here). Ignored entirely by `dotnet new` on the CLI. - The `.csproj` at the repo root — the project file every generated plugin ships with. - `EntryPoint.cs` / `Config.cs` — the scaffolded plugin (`Plugin`) and its YAML-backed settings class.