Skip to content

Commit e4d9200

Browse files
authored
docs: Update README.zh.md
1 parent 6f51581 commit e4d9200

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

README.zh.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -359,24 +359,23 @@ dotnet-exec deploy-script.cs --reference "nuget:Docker.DotNet"
359359
|------|------|------|------|
360360
| `--reference` | `-r` | 添加程序集引用 | `-r "nuget:Newtonsoft.Json"` |
361361
| `--using` | `-u` | 添加 using 语句 | `-u "System.Text.Json"` |
362-
| `--entry` | | 指定入口方法 | `--entry MainTest` |
362+
| `--entry` | `-e` | 指定入口方法 | `--entry MainTest` |
363363
| `--web` | | 添加 Web 框架引用 | `--web` |
364364
| `--profile` | | 使用配置文件 | `--profile web-dev` |
365365

366366
### 编译选项
367367

368368
| 选项 | 描述 | 示例 |
369369
|------|------|------|
370-
| `--configuration` | 编译配置 | `--configuration Release` |
370+
| `--configuration`/`-c` | 编译配置 | `--configuration Release` |
371371
| `--framework` | 目标框架 | `--framework net8.0` |
372372
| `--langversion` | C# 语言版本 | `--langversion 11` |
373-
| `--no-cache` | 禁用编译缓存 | `--no-cache` |
374373

375374
### 输出选项
376375

377376
| 选项 | 描述 | 示例 |
378377
|------|------|------|
379-
| `--verbose` | 详细输出 | `--verbose` |
378+
| `--debug` | 详细输出 | `--debug` |
380379
| `--compile-output` | 保存编译结果 | `--compile-output ./output.dll` |
381380
| `--dry-run` | 仅验证不执行 | `--dry-run` |
382381

@@ -396,19 +395,6 @@ dotnet-exec config set-profile production \
396395
--configuration Release
397396
```
398397

399-
### 团队共享
400-
401-
```sh
402-
# 导出配置
403-
dotnet-exec config export --profile team-config --output config.json
404-
405-
# 导入配置
406-
dotnet-exec config import --file config.json
407-
408-
# 版本控制
409-
echo "config.json" >> .gitignore # 如果包含敏感信息
410-
```
411-
412398
## 集成场景
413399

414400
### CI/CD 流水线
@@ -427,13 +413,13 @@ echo "config.json" >> .gitignore # 如果包含敏感信息
427413
428414
```sh
429415
# 代码生成
430-
dotnet-exec codegen/generate-models.cs --input schema.json
416+
dotnet-exec codegen/generate-models.cs -- --input schema.json
431417

432418
# 数据库迁移
433-
dotnet-exec migrations/migrate.cs --connection-string "$DB_CONN"
419+
dotnet-exec migrations/migrate.cs -- --connection-string "$DB_CONN"
434420

435421
# 性能测试
436-
dotnet-exec perf/benchmark.cs --iterations 1000
422+
dotnet-exec perf/benchmark.cs -- --iterations 1000
437423
```
438424

439425
## 文档

0 commit comments

Comments
 (0)