mirror of
https://github.com/dotnet/skills.git
synced 2026-09-20 09:49:54 +08:00
62 lines
2.2 KiB
YAML
62 lines
2.2 KiB
YAML
name: binlog-generation
|
|
description: Evaluates the dotnet-msbuild/binlog-generation skill
|
|
type: capability
|
|
config:
|
|
timeout: 3m
|
|
stimuli:
|
|
- name: Build project with /bl flag
|
|
prompt: Build this project and create a binlog for diagnostic purposes.
|
|
environment:
|
|
files:
|
|
- src: .
|
|
dest: .
|
|
graders:
|
|
- type: file-exists
|
|
config:
|
|
path: "*.binlog"
|
|
- type: output-matches
|
|
config:
|
|
pattern: "/bl:|-bl:"
|
|
- type: prompt
|
|
rubric:
|
|
- Used /bl:{} or -bl:{} (with the {} placeholder) to generate a unique binlog filename automatically
|
|
- Did NOT use bare /bl or -bl without a filename (which always writes to msbuild.binlog and overwrites on every
|
|
build)
|
|
- Did NOT use a hardcoded specific filename like /bl:build.binlog when {} is available
|
|
- name: Build with /bl in PowerShell
|
|
prompt: Build this project using PowerShell and create a binlog for diagnostic purposes.
|
|
environment:
|
|
files:
|
|
- src: .
|
|
dest: .
|
|
graders:
|
|
- type: file-exists
|
|
config:
|
|
path: "*.binlog"
|
|
- type: output-matches
|
|
config:
|
|
pattern: (-bl:\{\{\}\}|/bl:\{\{\}\})
|
|
- type: prompt
|
|
rubric:
|
|
- Used the properly PowerShell-escaped form -bl:{{}} or /bl:{{}} when running dotnet build in PowerShell
|
|
- Produced at least one *.binlog file in the working directory
|
|
- Did NOT use bare /bl or -bl without a filename
|
|
- name: Build multiple configurations with unique binlogs
|
|
prompt: Build this project in both Debug and Release configurations and create a binlog for each build.
|
|
environment:
|
|
files:
|
|
- src: .
|
|
dest: .
|
|
graders:
|
|
- type: file-exists
|
|
config:
|
|
path: "*.binlog"
|
|
- type: output-matches
|
|
config:
|
|
pattern: "/bl:|-bl:"
|
|
- type: prompt
|
|
rubric:
|
|
- Used /bl:{} or -bl:{} for the first build so each invocation gets a unique filename automatically
|
|
- Used /bl:{} or -bl:{} for the second build as well (not a hardcoded name that would collide)
|
|
- Each MSBuild invocation received the {} placeholder — no two builds share the same binlog file
|