Chaos.RepoBaseline
0.2.1
dotnet tool install --global Chaos.RepoBaseline --version 0.2.1
dotnet new tool-manifest
dotnet tool install --local Chaos.RepoBaseline --version 0.2.1
#tool dotnet:?package=Chaos.RepoBaseline&version=0.2.1
nuke :add-package Chaos.RepoBaseline --version 0.2.1
Chaos.RepoBaseline
repo-baseline copies the shared files of repo-baseline into a repository and checks that they stay unchanged there: code style and formatter settings, agent instructions, helper scripts and common build properties. The repository pins a release of these files in .repo-baseline.json.
The tool needs the .NET 10 SDK or later, and Git only for --checkout.
Installation
The repository pins the tool in its tool manifest, dotnet-tools.json. A new repository has no tool manifest yet, so run init once with dnx; it creates the manifest with the tool. Name the tool version, because dnx may otherwise use the version of a dotnet-tools.json in a parent directory:
dnx Chaos.RepoBaseline@<tool-version> init <path> <version> --name <Name> …
An existing repository adds the tool to its manifest instead, creating the manifest first if it has none:
dotnet new tool-manifest
dotnet tool install Chaos.RepoBaseline
Then restore it locally and in CI:
dotnet tool restore
Commands
| Command | Description |
|---|---|
dotnet repo-baseline init <path> <version> --name <Name> … |
Sets up a repository with the release <version>: the manifest, the synced files and the files created from templates. |
dotnet repo-baseline sync <path> [<version>] |
Writes the synced files of the pinned release, or of <version>, which it then pins. |
dotnet repo-baseline check <path> |
Lists every place where the repository differs from the pinned release. It exits with 1 when it has findings. |
See the documentation for all options.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.