A build tool for your build tools.
Install the tool by running dotnet tool install -g make
in your terminal.
If you want to install the tool on a repository basis, omit the -g
option.
You can then invoke builds by running dotnet make
anywhere in your repository.
$ dotnet make --help
USAGE:
dotnet make [TARGET] [OPTIONS]
ARGUMENTS:
[TARGET] The target to run
OPTIONS:
-h, --help Prints help information
-v, --version Prints version information
--prefer <RUNNER> Uses the preferred runner. Available runners
are cake, frosting, project, sln, traversal
The tool uses conventions to determine how to invoke your projects' builds.
Everything after --
will be passed as-is to the build provider.
# Pass parameter to MSBuild
$ dotnet make -- /p:foo=bar
# Pass parameter to Cake
$ dotnet make -- --foo bar
- Cake
- Frosting
- Make
- Project files (csproj, fsproj, vbproj)
- Solution files (sln)
- MSBuild traversal projects (proj)
We're using Cake as a dotnet tool for building. So make sure that you've restored Cake by running the following in the repository root:
> dotnet tool restore
After that, running the build is as easy as writing:
> dotnet cake
Copyright (c) 2024 Patrik Svensson