dotnet tool install --global dotnet-detect-changes --version 1.0.0-rc1
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local dotnet-detect-changes --version 1.0.0-rc1
nuke :add-package dotnet-detect-changes --version 1.0.0-rc1
This is a .NET tool to detect whether any files affecting a given project or projects in a repository were changed in a commit or pull request.
The idea is that you can have a single Git repo with one or more .NET solutions, and determine whether the CI/CD pipeline needs to be run for a subset of projects within that repo. For example, you might have a web application, an API and a NuGet package all in the same repo. If you just change a button style in the web application, you probably don't want to release a new version of the API and NuGet package.
You can install the tool locally
Detect whether projects and associated files were changed in the most recent git commit
|Versions Compatible and additional computed target framework versions.
|net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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.
This package has no dependencies.