MonoRepo.DependencyManager 2023.7.282039

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global MonoRepo.DependencyManager --version 2023.7.282039                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local MonoRepo.DependencyManager --version 2023.7.282039                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MonoRepo.DependencyManager&version=2023.7.282039                
nuke :add-package MonoRepo.DependencyManager --version 2023.7.282039                

Monorepo-DependencyManager

This tool was created to allow dotnet projects to use a monorepo structure on azure devops. It tries to solve the problem of having shared code betweeen solutions and knowing when to run pipelines to check if the users of shared code do not break when shared code is changed.

It has a few features that can be enabled trough configuration. But the update command of the application functions like this:

  • Find all Solutions (.sln) in the git repository
  • Per solution find all the Projects (that do not end in Test.csproj)
  • For every project build a dependency tree of other projects
  • For all the projects in the tree:
    • [Feature]: Find docker files and refer all projects for caching
    • For Azure Devops pipeline yml files.
      • [Feature]: Update the trigger paths acccording to the dependency tree
      • [Feature]: Import the pipeline into Azure Devops
      • [Feature]: Create branch policies for specific branches

Installation

The tool can be easily installed using dotnet tool since it is hosted on Nuget

Command: dotnet tool install --global MonoRepo.DependencyManager

How to use?

The depenency manager will only function when run inside a folder that is (part of) a git repository. It will automatically inspect the current branch and the root of the current repoository.

To use Azure Devops

Help

Command: MonoRepo --help

Displays the list of commands and a short description of that they do.

Init

Command: MonoRepo init [--overwrite]

Starts the MonoRepo initialization process. The tool will help you configure itself to do excactly what you need. It will create a .monorepo-config file in the root of the repository to store its configuration. These configurations do not contain any sensitive data.

Options

--overwrite Will allow you to overwrite an existing configuration to make changes.

Check Permissions

Command: MonoRepo check-permissions

Runs a small diagnostics run to see if the neccesary tools are installed to use Azure DevOps functionalities:

  • Azure Cli
  • Azure DevOps Cli Extension
  • Check if an acces token can be retrieved

Update

Command: MonoRepo update [--pat <Devops Personal Access Token>] [-v]

Starts depencency update flow:

  • Find all Solutions (.sln) in the git repository
  • Per solution find all the Projects (that do not end in Test.csproj)
  • For every project build a dependency tree of other projects
  • For all the projects in the tree:
    • [Feature]: Find docker files and refer all projects for caching
    • For Azure Devops pipeline yml files.
      • [Feature]: Update the trigger paths acccording to the dependency tree
      • [Feature]: Import the pipeline into Azure Devops
      • [Feature]: Create branch policies for specific branches
Options

--pat Use an Azure Devops PAT instead of Azure Cli login

-v Verbose

Tree

Command: MonoRepo update [--pat <Devops Personal Access Token>]

Options

--pat Use an Azure Devops PAT instead of Azure Cli login

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2023.12.80846 4,179 12/8/2023
2023.12.71255 1,490 12/7/2023
2023.11.121611 2,022 11/12/2023
2023.11.121534 1,450 11/12/2023
2023.11.121458 1,431 11/12/2023
2023.7.282039 2,809 7/28/2023
2023.7.282034 1,782 7/28/2023
2023.7.191121 1,951 7/19/2023
2023.7.190858 1,517 7/19/2023
2023.7.91836 1,732 7/9/2023
2023.7.91546 1,653 7/9/2023
2023.7.91214 1,623 7/9/2023
2023.7.91127 1,797 7/9/2023
2023.7.60915 1,576 7/6/2023
2023.7.40934 1,753 7/4/2023
2023.7.12153 1,851 7/1/2023
2023.6.301211 1,775 6/30/2023
2023.6.300837 1,661 6/30/2023
2023.6.300755 1,672 6/30/2023
2023.6.291208 1,706 6/29/2023
2023.6.281427 1,817 6/28/2023
2023.6.281424 1,523 6/28/2023
2023.6.281407 1,818 6/28/2023
2023.6.281406 1,812 6/28/2023
2023.6.281354 1,764 6/28/2023
2023.6.281345 1,685 6/28/2023
2023.6.281005 1,620 6/28/2023
2023.6.280957 1,717 6/28/2023
2023.6.280954 1,729 6/28/2023
2023.6.280916 1,629 6/28/2023
2023.6.280911 1,721 6/28/2023
2023.6.280907 1,695 6/28/2023
2023.6.280853 1,508 6/28/2023
2023.6.280844 1,755 6/28/2023
2023.6.280833 1,722 6/28/2023
2023.6.280749 1,801 6/28/2023
2023.6.280739 1,845 6/28/2023
2023.6.280737 1,935 6/28/2023
2023.6.280656 1,688 6/28/2023
2023.6.280640 2,710 6/28/2023
2023.6.280625 2,616 6/28/2023
2023.6.280612 2,678 6/28/2023
2023.6.280555 2,925 6/28/2023
2023.6.212204 3,012 6/21/2023