Remove SkipRestore parameter

This commit is contained in:
2026-08-27 00:26:47 +02:00
parent 8d0b8895dc
commit 437bb55f33
3 changed files with 5 additions and 17 deletions
-5
View File
@@ -6,11 +6,6 @@
"name": { "text": "Plugin Author" }, "name": { "text": "Plugin Author" },
"isVisible": "true" "isVisible": "true"
}, },
{
"id": "skipRestore",
"name": { "text": "Skip Restore" },
"isVisible": "true"
},
{ {
"id": "SkipGit", "id": "SkipGit",
"name": { "text": "Skip Git" }, "name": { "text": "Skip Git" },
-7
View File
@@ -18,12 +18,6 @@
"replaces": "YourName", "replaces": "YourName",
"description": "Name used as the plugin's author (EntryPoint's Author property)." "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": { "SkipGit": {
"type": "parameter", "type": "parameter",
"datatype": "bool", "datatype": "bool",
@@ -36,7 +30,6 @@
], ],
"postActions": [ "postActions": [
{ {
"condition": "(!skipRestore)",
"description": "Restores the NuGet packages required by this project (including LabAPI).", "description": "Restores the NuGet packages required by this project (including LabAPI).",
"manualInstructions": [ "manualInstructions": [
{ "text": "Run 'dotnet restore'" } { "text": "Run 'dotnet restore'" }
+5 -5
View File
@@ -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 `.template.config/template.json` sets this folder's name as the template's
`sourceName` and defines one text-replacement `symbol`, `PluginAuthor` (plus `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** text). The dotnet templating engine does a literal, repo-wide **string replacement**
at generation time — not semantic renaming — driven by that config: at generation time — not semantic renaming — driven by that config:
@@ -51,10 +51,10 @@ Consequences:
printed reminder and not an executed command. printed reminder and not an executed command.
- `.template.config/ide.host.json` — Visual Studio-only UI hints for the New Project - `.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`/ 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 `SkipGit` — a flag can't contain a space); it only maps each symbol's `id` to a
`id` to a human-readable `name.text` label (e.g. `SkipGit` → "Skip Git") shown in human-readable `name.text` label (e.g. `SkipGit` → "Skip Git") shown in VS's UI, via
VS's UI, via `isVisible: "true"` per entry (VS hides a symbol from that UI unless `isVisible: "true"` per entry (VS hides a symbol from that UI unless explicitly
explicitly marked visible here). Ignored entirely by `dotnet new` on the CLI. 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. - The `.csproj` at the repo root — the project file every generated plugin ships with.
- `EntryPoint.cs` / `Config.cs` — the scaffolded plugin (`Plugin<Config>`) and its - `EntryPoint.cs` / `Config.cs` — the scaffolded plugin (`Plugin<Config>`) and its
YAML-backed settings class. YAML-backed settings class.