Skip to content

credfeto/credfeto-dotnet-repo-tools

Repository files navigation

credfeto-dotnet-repo-tools

Dotnet/C# repository tools

Running (Package Update)

Updates all the packages specified in the packages.json file in the repositories in repos.txt.

  • release.json defines the configuration for generating releases when multiple packages have been updated
  • the template repo specified by --template is excluded from repos.txt if it is present
dotnet updaterepo \
    update-packages \
    --repositories ~/work/personal/auto-update-config/personal/repos.lst \
    --work ~/temp \
    --tracking ~/temp/tracking.json \
    --cache ~/temp/cache.json \
    --packages ~/work/personal/auto-update-config/packages.json \
    --template [email protected]:credfeto/cs-template.git \
    --release ~/work/personal/auto-update-config/release.json

Running (Template Update)

Updates common files in a repository to match the files defined template repository specified by --template.

dotnet updaterepo \
    update-template \
    --repositories ~/work/personal/auto-update-config/personal/repos.lst \
    --work ~/temp \
    --tracking ~/temp/tracking.json \
    --packages ~/work/personal/auto-update-config/packages.json \
    --template [email protected]:credfeto/cs-template.git \
    --release ~/work/personal/auto-update-config/release.json

Running (Code Cleanup)

TODO - this is not yet implemented

dotnet updaterepo \
    code-cleanup \
    --repositories ~/work/personal/auto-update-config/personal/repos.lst \
    --work ~/temp \
    --tracking ~/temp/tracking.json

File formats

repos.lst

One line per repo to process e.g:

[email protected]:credfeto/repo1.git
[email protected]:credfeto/repo2.git
[email protected]:credfeto/repo3.git

tracking.json

This is generated by the tool

cache.json

This is generated by the tool

packages.json

TODO

release.json

TODO

Build Status

Branch Status
main Build: Pre-Release
release Build: Release

Changelog

View changelog

Contributors