重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
binlog-generation by dotnet/skills
npx skills add https://github.com/dotnet/skills --skill binlog-generation在任何基于 MSBuild 的命令运行时传递 /bl 开关。 这是所有 .NET 构建的硬性要求。
您必须将 /bl:{} 标志添加到以下命令:
dotnet builddotnet testdotnet packdotnet publishdotnet restoremsbuild 或 msbuild.exe广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
{} 实现自动唯一命名注意:
{}占位符需要 MSBuild 17.8+ / .NET 8 SDK 或更高版本。
binlog 文件名中的 {} 占位符会被 MSBuild 替换为一个唯一标识符,确保任何两次构建都不会相互覆盖——无需跟踪或检查现有文件。
# 每次调用都会自动生成一个不同的文件
dotnet build /bl:{}
dotnet test /bl:{}
dotnet build --configuration Release /bl:{}
PowerShell 需要对花括号进行转义:
# PowerShell: 将 { } 转义为 {{ }}
dotnet build -bl:{{}}
dotnet test -bl:{{}}
# ✅ 正确 - {} 自动生成唯一名称 (bash/cmd)
dotnet build /bl:{}
dotnet test /bl:{}
# ✅ 正确 - PowerShell 转义
dotnet build -bl:{{}}
dotnet test -bl:{{}}
# ❌ 错误 - 完全缺少 /bl 标志
dotnet build
dotnet test
# ❌ 错误 - 没有文件名(每次都会覆盖同一个 msbuild.binlog 文件)
dotnet build /bl
dotnet build /bl
如果 binlog 文件名需要预先确定(例如,用于 CI 工件上传),或者已安装的 MSBuild 版本不支持 {},请选择一个不会与现有文件冲突的名称:
*.binlog 文件# 示例:目录包含 3.binlog — 使用 4.binlog
dotnet build /bl:4.binlog
使用 git clean 清理仓库时,务必排除 binlog 文件,以保留您的构建历史:
# ✅ 正确 - 从清理中排除 binlog 文件
git clean -fdx -e "*.binlog"
# ❌ 错误 - 这会删除 binlog 文件(它们通常已在 .gitignore 中)
git clean -fdx
这在迭代修复构建问题时尤其重要——您需要 binlog 来分析构建之间的变化。
每周安装次数
44
仓库
GitHub 星标数
703
首次出现
2026年3月10日
安全审计
安装于
kimi-cli42
gemini-cli42
amp42
cline42
github-copilot42
codex42
Pass the/bl switch when running any MSBuild-based command. This is a non-negotiable requirement for all .NET builds.
You MUST add the /bl:{} flag to:
dotnet builddotnet testdotnet packdotnet publishdotnet restoremsbuild or msbuild.exe{} for Automatic Unique NamesNote: The
{}placeholder requires MSBuild 17.8+ / .NET 8 SDK or later.
The {} placeholder in the binlog filename is replaced by MSBuild with a unique identifier, guaranteeing no two builds ever overwrite each other — without needing to track or check existing files.
# Every invocation produces a distinct file automatically
dotnet build /bl:{}
dotnet test /bl:{}
dotnet build --configuration Release /bl:{}
PowerShell requires escaping the braces:
# PowerShell: escape { } as {{ }}
dotnet build -bl:{{}}
dotnet test -bl:{{}}
# ✅ CORRECT - {} generates a unique name automatically (bash/cmd)
dotnet build /bl:{}
dotnet test /bl:{}
# ✅ CORRECT - PowerShell escaping
dotnet build -bl:{{}}
dotnet test -bl:{{}}
# ❌ WRONG - Missing /bl flag entirely
dotnet build
dotnet test
# ❌ WRONG - No filename (overwrites the same msbuild.binlog every time)
dotnet build /bl
dotnet build /bl
If the binlog filename needs to be known upfront (e.g., for CI artifact upload), or if {} is not available in the installed MSBuild version, pick a name that won't collide with existing files:
*.binlog files in the directory# Example: directory contains 3.binlog — use 4.binlog
dotnet build /bl:4.binlog
When cleaning the repository with git clean, always exclude binlog files to preserve your build history:
# ✅ CORRECT - Exclude binlog files from cleaning
git clean -fdx -e "*.binlog"
# ❌ WRONG - This deletes binlog files (they're usually in .gitignore)
git clean -fdx
This is especially important when iterating on build fixes - you need the binlogs to analyze what changed between builds.
Weekly Installs
44
Repository
GitHub Stars
703
First Seen
Mar 10, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
kimi-cli42
gemini-cli42
amp42
cline42
github-copilot42
codex42
AI调试助手 - 结构化调试工具,系统化查找修复代码问题
799 周安装