Dotnet Repository Update tools


Keywords
Nuget, packages, tool, update, code-cleanup, dotnet, dotnet-core, package-management, template-manager
License
MIT
Install
Install-Package Credfeto.DotNet.Repo.Tools.Packages.Interfaces -Version 1.5.21.4231-mirror-folders

Documentation

credfeto-dotnet-repo-tools

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.

Build: Pre-Release Build: Release Licence

Overview

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.

Quick Start

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.json

Installation

dotnet tool install --global Credfeto.DotNet.Repo.Tools.Cmd
dotnet tool install --global Credfeto.DotNet.Repo.Formatter

Usage

updaterepo 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.

Documentation

Changelog

View changelog.

Contributing

See CONTRIBUTING.

Security

See SECURITY.

Licence

See LICENSE.