Linux command
cake 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Run default build script
dotnet cake
Run specific build script
dotnet cake [build.cake]
Run specific target
dotnet cake --target=[Clean]
Run with verbosity
dotnet cake --verbosity=[diagnostic]
Show available tasks
dotnet cake --showdescription
Dry run without executing
dotnet cake --dryrun
Run with custom argument
dotnet cake --configuration=[Release]
说明
Cake (C# Make) is a cross-platform build automation system with a C# DSL. It compiles code, copies files, runs tests, compresses files, and builds NuGet packages. Scripts are written in C# and executed via Roslyn.
参数
- --target=_name_
- Target task to run
- --verbosity=_level_
- Output verbosity (quiet, minimal, normal, verbose, diagnostic)
- --dryrun
- Show tasks without executing
- --showdescription
- Show task descriptions
- --showtree
- Show task dependency tree
- --configuration=_config_
- Build configuration (Debug, Release)
- --exclusive
- Execute only target task without dependencies
- --version
- Show version
- --help
- Show help
FAQ
What is the cake command used for?
Cake (C# Make) is a cross-platform build automation system with a C# DSL. It compiles code, copies files, runs tests, compresses files, and builds NuGet packages. Scripts are written in C# and executed via Roslyn.
How do I run a basic cake example?
Run `dotnet cake` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --target=_name_ do in cake?
Target task to run