Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

Incrementalist

> 开发工具
Open source

Git-based incremental build and testing platform for .NET and .NET Core.

347 stars0 likes0 views
WebsiteGitHub

About

Git-based incremental build and testing platform for .NET and .NET Core.

Incrementalist

Incrementalist is a .NET tool that leverages libgit2sharp and Roslyn to compute incremental build steps for large .NET solutions. It helps optimize your CI/CD pipeline by building and testing only the projects affected by your changes.

When to Use Incrementalist

Incrementalist is particularly valuable for:

  • ️ Large Solutions: If your solution contains dozens or hundreds of projects, Incrementalist can significantly reduce build times by only building what's necessary.
  • Monorepos: When managing multiple applications or services in a single repository, Incrementalist helps identify and build only the affected components.
  • Microservice Architectures: In repositories containing multiple microservices, build only the services impacted by your changes.
  • Complex Dependencies: When projects have intricate dependencies, Incrementalist automatically determines the impacted build graph.
  • ⚡ CI/CD Optimization: Reduce CI/CD pipeline execution time by skipping unnecessary builds and tests.

⚙️ Requirements

  • .NET 8.0 SDK or later
  • Git installed and available in the system PATH

Installation

Incrementalist is available in two forms:

  1. Incrementalist Library - a .NET 8 library for programmatic use
  2. Incrementalist.Cmd - a dotnet tool for command-line use ( recommended)

Install the command-line tool globally:

bash
dotnet tool install --global Incrementalist.Cmd

Or install locally in your project:

bash
# From your repository root
dotnet new tool-manifest # if you haven't already created a .config/dotnet-tools.json
dotnet tool install Incrementalist.Cmd

Running as a Global Tool

When installed globally, run commands directly using the incrementalist command with one of the available verbs:

bash
# Get list of affected projects
incrementalist run --dry -b dev -f ./affected-projects.txt

# List affected folders
incrementalist list-affected-folders -b dev -f ./affected-folders.txt

# Run tests for affected projects
incrementalist run -b dev -- test -c Release

# Run tests for affected projects those matching a glob
incrementalist run -b dev --target-glob "src/*.Tests.csproj" -- test -c Release

Running as a Local Tool

When using Incrementalist as a local tool, you need to use dotnet tool run with an additional -- before the Incrementalist commands:

…

![NOTE] Don't call dotnet tool run incrementalist - this runs into some very annoying parse issues: https://github.com/petabridge/Incrementalist/issues/378 . Just call dotnet incrementalist instead.

Configuration Files

Incrementalist supports JSON configuration files to store commonly used settings. This eliminates the need to specify the same command-line arguments repeatedly.

bash
# Use default configuration file (.incrementalist/incrementalist.json)
incrementalist run -- build

# Specify a custom configuration file
incrementalist -c my-config.json run -- build

# Create configuration file with current settings
incrementalist create-config -b dev --verbose --parallel

Create a configuration file in your repository:

json
{
  "gitBranch": "dev",
  "verbose": true,
  "runInParallel": true
}

Command-line arguments take precedence over configuration file settings. See Configuration Documentation for complete details.

Quick Start Examples

…

Output Files

Incrementalist can generate two types of output files using -f, --file:

  1. Project Lists (with the run verb):

    D:\src\Project1\Project1.csproj,D:\src\Project2\Project2.csproj
  2. Folder Lists (with the list-affected-folders verb):

    D:\src\Project1,D:\src\Project2\SubFolder

These files can be used in build scripts, CI/CD pipelines, or other automation tools.

️ Command-Line Options

Incrementalist now uses a verb-based command structure. Common options are available across all verbs, with some verb-specific options.

Common Options (available for all verbs)

…

Available Verbs

create-config

Creates a new configuration file with current options.

incrementalist create-config [options]

list-affected-folders

List affected folders instead of .NET projects.

incrementalist list-affected-folders [options]

run

Run a command against affected projects. Use the --dry option to test without executing.

incrementalist run [options] -- [dotnet command and arguments]

Additional options for run:

  --dry                 Optional. (Default: false) Performs a dry run without
                        executing any commands. Useful for testing.

run-process

Run a custom process against affected projects. Currently a discoverable alias for run that only supports dotnet commands.

incrementalist run-process [options] -- [process arguments]

Additional options for run-process:

  --process             Required. The name or path of the process to start (e.g. 'dotnet', '/bin/bash', 'mytool').
                        Currently only 'dotnet' is supported.

  --dry                 Optional. (Default: false) Performs a dry run without
                        executing any commands. Useful for testing.

⚡ Running Commands

Execute dotnet CLI commands against affected projects using the run verb:

…

Filtering Projects with Glob Patterns

After Incrementalist determines the initial set of affected projects based on Git changes and project dependencies, you can further refine this list using glob patterns.

  • --target-glob "": Only includes projects whose paths match the specified glob pattern(s). If multiple patterns are provided, a project matching any of them will be included. This filter is applied first.
  • --skip-glob "": Excludes projects whose paths match the specified glob pattern(s) from the list remaining after any --target-glob filters have been applied. If multiple patterns are provided, a project matching any of them will be excluded.

Both options can be specified multiple times on the command line.

Example: Find all affected projects, but only run the build command on non-test projects within the src directory.

bash
incrementalist run -b dev --target-glob "src/**/*.csproj" --skip-glob "**/*.Tests.csproj" -- build -c Release --nologo

Documentation

  • How It Works - Technical details and architecture
  • ️ Building from Source - Build instructions and development setup
  • ⚙️ Configuration Files - Using JSON configuration files
  • Real-World Examples - Production examples from other open source projects using Incrementalist in the wild.

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Copyright 2015-2025 Petabridge

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#build-toolsdotnetdotnet-cliincrementalist

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具