Bulk-manages a fleet of .NET/C# git repositories: keeps their NuGet packages up to date, syncs common files from a shared template repository, prunes unnecessary dependencies, and cleans up code style, all across many repositories in one run.
updaterepo clones every repository listed in a repos.lst file, applies the requested operation (package updates, template sync, dependency reduction, or code cleanup), and pushes the results back as commits, tracking progress in a tracking.json file so repeated runs are incremental. A standalone companion tool, cscleanup, formats individual C# files or projects without needing a git repository at all.
After installing the tool:
dotnet updaterepo update-packages \
--repositories repos.lst \
--work ~/temp \
--tracking ~/temp/tracking.json \
--packages packages.json \
--template git@github.com:credfeto/cs-template.git \
--release release.jsondotnet tool install --global Credfeto.DotNet.Repo.Tools.Cmd
dotnet tool install --global Credfeto.DotNet.Repo.Formatterupdaterepo exposes five commands: update-packages, update-template, code-cleanup, reduce-dependencies, and check-dependencies. See the CLI Command Reference for the full option tables and examples.
cscleanup formats one or more .cs/.csproj files or folders directly:
cscleanup src/MyProject/See the cscleanup Reference for all options, input resolution rules, and pre-commit hook setup.
- Architecture: solution layout and command flow
-
CLI Command Reference: all
updaterepocommands and options -
Configuration Reference:
repos.lst,tracking.json,cache.json,packages.json,release.json,template.json - cscleanup Reference: the standalone C# formatter tool
-
GitHub Labels Reference: labels generated by
update-template
View changelog.
See CONTRIBUTING.
See SECURITY.
See LICENSE.