Parameters¶
Authoritative source: .template.config/template.json in ConnectSoft.MarketingSiteTemplate.
Repo reference: docs/template-parameters.md.
Core¶
| Symbol | CLI | Default | Description |
|---|---|---|---|
CompanyName |
--CompanyName |
ConnectSoft |
Company name in metadata and generated content placeholders. |
ProjectName |
--ProjectName |
MarketingSite |
Renames solution, projects, namespaces, and files (MarketingSiteTemplate token). |
Framework |
--framework |
net10.0 |
net10.0 only — net8/net9 excluded. |
Feature flags¶
| Symbol | CLI | Default | Effect (summary) |
|---|---|---|---|
EnableAnalytics |
--EnableAnalytics |
true |
Sets Analytics:GA4:Enabled; excludes analytics guidance markdown when false. |
EnableCookieConsent |
--EnableCookieConsent |
true |
Sets CookieConsent:Enabled; excludes Cookies legal page when false. |
DefaultLanguage |
--DefaultLanguage |
en |
en or he — sets MarketingSiteTemplate:DefaultCulture. |
PagePack |
--PagePack |
full |
Controls optional page groups; see Features. |
PagePack presets and computed flags¶
PagePack |
IncludeProductPages |
IncludeContentPages |
IncludeTrustPages |
IncludeAuthPages |
|---|---|---|---|---|
minimal |
— | — | — | — |
standard |
— | — | yes | — |
growth |
yes | — | yes | — |
full |
yes | yes | yes | yes |
After generation, align FeatureManagement in appsettings.json with the selected pack (for example disable MarketingBlog when PagePack=minimal).
Packaging / generation¶
| Symbol | CLI | Default | Description |
|--------|-----|-------------|
| includeInfra | --include-infra / -infra | true | Excludes infra/ folder when false. |
| skipRestore | --skip-restore | false | Skips automatic dotnet restore post-action. |
Examples¶
# Standard company site
dotnet new connectsoft-marketing-site -n AcmeSite \
--ProjectName AcmeSite \
--CompanyName Acme
# Minimal pack, no analytics or cookie consent
dotnet new connectsoft-marketing-site -n MinimalSite \
--ProjectName MinimalSite \
--PagePack minimal \
--EnableAnalytics false \
--EnableCookieConsent false
# Hebrew default, no infra
dotnet new connectsoft-marketing-site -n ILSite \
--ProjectName ILSite \
--DefaultLanguage he \
--include-infra false
Inspect installed parameters: