MonoRepo.DependencyManager 2023.11.121458

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global MonoRepo.DependencyManager --version 2023.11.121458                
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.11.121458                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MonoRepo.DependencyManager&version=2023.11.121458                
nuke :add-package MonoRepo.DependencyManager --version 2023.11.121458                

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 5,300 12/8/2023
2023.12.71255 1,523 12/7/2023
2023.11.121611 2,054 11/12/2023
2023.11.121534 1,479 11/12/2023
2023.11.121458 1,467 11/12/2023
2023.7.282039 2,835 7/28/2023
2023.7.282034 1,809 7/28/2023
2023.7.191121 1,981 7/19/2023
2023.7.190858 1,545 7/19/2023
2023.7.91836 1,759 7/9/2023
2023.7.91546 1,678 7/9/2023
2023.7.91214 1,651 7/9/2023
2023.7.91127 1,824 7/9/2023
2023.7.60915 1,607 7/6/2023
2023.7.40934 1,782 7/4/2023
2023.7.12153 1,878 7/1/2023
2023.6.301211 1,807 6/30/2023
2023.6.300837 1,687 6/30/2023
2023.6.300755 1,700 6/30/2023
2023.6.291208 1,735 6/29/2023
2023.6.281427 1,842 6/28/2023
2023.6.281424 1,552 6/28/2023
2023.6.281407 1,847 6/28/2023
2023.6.281406 1,841 6/28/2023
2023.6.281354 1,797 6/28/2023
2023.6.281345 1,716 6/28/2023
2023.6.281005 1,647 6/28/2023
2023.6.280957 1,748 6/28/2023
2023.6.280954 1,759 6/28/2023
2023.6.280916 1,666 6/28/2023
2023.6.280911 1,751 6/28/2023
2023.6.280907 1,725 6/28/2023
2023.6.280853 1,540 6/28/2023
2023.6.280844 1,779 6/28/2023
2023.6.280833 1,754 6/28/2023
2023.6.280749 1,828 6/28/2023
2023.6.280739 1,872 6/28/2023
2023.6.280737 1,962 6/28/2023
2023.6.280656 1,714 6/28/2023
2023.6.280640 2,740 6/28/2023
2023.6.280625 2,642 6/28/2023
2023.6.280612 2,705 6/28/2023
2023.6.280555 2,955 6/28/2023
2023.6.212204 3,044 6/21/2023