docs(zh-CN): sync Chinese docs with latest upstream changes

This commit is contained in:
neo
2026-03-21 12:55:58 +08:00
parent 0af0fbf40b
commit e73c2ffa34
85 changed files with 11028 additions and 747 deletions

View File

@@ -0,0 +1,26 @@
---
paths:
- "**/*.cs"
- "**/*.csx"
- "**/*.csproj"
- "**/*.sln"
- "**/Directory.Build.props"
- "**/Directory.Build.targets"
---
# C# 钩子
> 本文档基于 [common/hooks.md](../common/hooks.md) 扩展了 C# 相关的具体内容。
## PostToolUse 钩子
`~/.claude/settings.json` 中配置:
* **dotnet format**:自动格式化编辑过的 C# 文件并应用分析器修复
* **dotnet build**:验证编辑后解决方案或项目是否仍能编译
* **dotnet test --no-build**:在行为更改后重新运行最近相关的测试项目
## Stop 钩子
* 在结束涉及广泛 C# 更改的会话前,运行一次最终的 `dotnet build`
*`appsettings*.json` 文件被修改时发出警告,以防敏感信息被提交