Skip to content

Blazor Component Library Template — Parameters

Canonical reference for dotnet new connectsoft-blazor-component-library (ConnectSoft.Blazor.ComponentLibraryTemplate). Host mappings live in the repo under .template.config/dotnetcli.host.json and ide.host.json.

Standard CLI parameters

Parameter Type CLI Description
name string -n, --name Output name; also drives sourceName replacement.
output string -o, --output Output directory.

Template-specific parameters

Parameter Type Default CLI (preferred) Description
Framework choice net10.0 --framework / -f Primary moniker for docs/tooling; does not bulk-rewrite TFMs in .csproj.
buildDefinitionNumber string "" --build-definition-number / -b Optional CI badge / pipeline placeholder text.
skipRestore bool false --skip-restore Skip post-instantiation restore.
includeSampleContent bool true --include-sample-content Sample Box primitive, gallery page, tests, docs.
includeTests bool true --include-tests Unit and linker test projects.
includeGallery bool true --include-gallery WASM gallery sample.

Examples

dotnet new connectsoft-blazor-component-library -n Acme.Ui -f net9.0 --include-gallery false
dotnet new connectsoft-blazor-component-library -h

Authoring-only symbols

AuthoringMode, preprocessor helpers, and currentYear are defined for the template repository build and pack pipeline; they are not consumer-facing switches.