Solhigson.Templates
10.1.0
See the version list below for details.
dotnet new install Solhigson.Templates@10.1.0
dotnet new templates for Solhigson projects. solhigson-web: a layered solution (Domain, Application, Infrastructure, Web, Tests) on Solhigson.Framework.Core, Solhigson.Analyzers and Solhigson.Testing. Its host is composed from one partial per feature (logging with redaction of classified values, settings, authentication required everywhere but /alive, Hangfire from the framework, the status and deploy verbs), with Queues constants and message catalogues in Domain. Its test project inherits every Solhigson.Testing census, runs a Tier=Postgres pool test, and captures a TRX on every run, and a hang dump when a test hangs for ten minutes. Its GitHub workflows are a sharded suite gate selecting tests by the diff, a nightly full suite, a release keeping one artifact per sha and a deploy that refuses a sha without a green push-to-main gate run. The SDK is pinned in global.json, package versions are central, every project restores from its lock file in locked mode, NuGet audits every package, warnings are errors and every analyzer category is at warning.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
10.1.0: solhigson-web pins Solhigson.Framework.Core 10.16.0, Solhigson.Analyzers 10.1.0 and Solhigson.Testing 10.3.0, its lock files regenerated. Tests: the settings-file census inherited once (public sealed class SettingsFileCensus() : SettingsFileCensusTests();), so every key of an appsettings*.json git lists is a startup section's or one a [SettingsGroup] type declares, and holds no secret; SettingsCatalogTests holds that the host registers a catalog and that status prints each of SettingsCatalog.Report()'s lines, and that every [SettingsGroup] type the census reads (the test output folder's assemblies referencing the framework) is one the host registers, naming any other with "declare it under Infrastructure"; the template declares no group, so its own report adds no line, and the package's self-gate plants a group in a generated project and sees its report lines printed. Host: the settings partial registers the declared settings of every [SettingsGroup] type Infrastructure declares (SolhigsonConfigurationService.UseSettingsCatalog(SettingsCatalog.Of(...)), none in the template), held to the declaration rules as the host builds, and its startup report lines add SettingsCatalog.Report()'s, the declared settings by source, never a value. The SOLT003-SOLT007 settings rules of Solhigson.Analyzers 10.1.0 apply under the template's warnings-as-errors build. Use: dotnet new install Solhigson.Templates::10.1.0, then as for 10.0.0. 10.0.0: first release. solhigson-web follows the Solhigson dotnet design at 517cca335a805e12d5728dd90335c2dc43c21fc8 (docs/design/dotnet-design.md) and pins Solhigson.Framework.Core 10.15.0, Solhigson.Analyzers 10.0.0 and Solhigson.Testing 10.2.0. Use: dotnet new install Solhigson.Templates::10.0.0, dotnet new solhigson-web -n <Name>, then git init in the generated folder before the first test run, since the censuses root at the nearest .git. Solution: <Name>.slnx over src/<Name>.Domain, .Application, .Infrastructure, .Web and .Tests, each layer referencing the one below it alone; global.json equal to the framework's; Directory.Build.props, Directory.Packages.props, a packages.lock.json per project, .editorconfig, .gitignore and .gitattributes. Host: Program.cs builds the host, calls one Add and one Use of the composition and runs; each feature is a composition partial with its services, recurring jobs, allowlisted jobs, verbs and startup report lines; classified values reach the logs redacted; the status verb prints the startup report and the deploy verb exits 3 until the project sets its deploy target. Authentication: a fallback policy requires an authenticated user everywhere but /alive; a project adds its own scheme (until it does, an anonymous call to a mapped endpoint answers 500); HSTS and the https redirect hold on a direct listener. Domain: Queues constants and the user and error message catalogues. Hangfire: composed from Solhigson.Framework.Core in one partial, the recurring jobs registered from the features' declarations. Tests: every Solhigson.Testing 10.2.0 census inherited once, a Tier=Postgres pool test (Docker), a TRX and a ten-minute hang dump captured on every run, and shape tests over the layering, the build rules, the composition and the workflows. .github: suite-gate.yml (a dispatch or a push to main; build once, select test classes by the diff, shard), suite-nightly.yml (the full suite at 03:00 UTC), release.yml (a framework-dependent publish kept as <Name>-<sha>) and deploy.yml (dispatch only; refuses a sha unless its latest completed push-to-main gate run succeeded and it is on main's first-parent line, then runs the deploy verb's tests and the deploy verb).