Remove SkipRestore parameter
This commit is contained in:
@@ -6,11 +6,6 @@
|
||||
"name": { "text": "Plugin Author" },
|
||||
"isVisible": "true"
|
||||
},
|
||||
{
|
||||
"id": "skipRestore",
|
||||
"name": { "text": "Skip Restore" },
|
||||
"isVisible": "true"
|
||||
},
|
||||
{
|
||||
"id": "SkipGit",
|
||||
"name": { "text": "Skip Git" },
|
||||
|
||||
@@ -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'" }
|
||||
|
||||
@@ -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<Config>`) and its
|
||||
YAML-backed settings class.
|
||||
|
||||
Reference in New Issue
Block a user