@@ -359,24 +359,23 @@ dotnet-exec deploy-script.cs --reference "nuget:Docker.DotNet"
359
359
| ------| ------| ------| ------|
360
360
| ` --reference ` | ` -r ` | 添加程序集引用 | ` -r "nuget:Newtonsoft.Json" ` |
361
361
| ` --using ` | ` -u ` | 添加 using 语句 | ` -u "System.Text.Json" ` |
362
- | ` --entry ` | | 指定入口方法 | ` --entry MainTest ` |
362
+ | ` --entry ` | ` -e ` | 指定入口方法 | ` --entry MainTest ` |
363
363
| ` --web ` | | 添加 Web 框架引用 | ` --web ` |
364
364
| ` --profile ` | | 使用配置文件 | ` --profile web-dev ` |
365
365
366
366
### 编译选项
367
367
368
368
| 选项 | 描述 | 示例 |
369
369
| ------| ------| ------|
370
- | ` --configuration ` | 编译配置 | ` --configuration Release ` |
370
+ | ` --configuration ` / ` -c ` | 编译配置 | ` --configuration Release ` |
371
371
| ` --framework ` | 目标框架 | ` --framework net8.0 ` |
372
372
| ` --langversion ` | C# 语言版本 | ` --langversion 11 ` |
373
- | ` --no-cache ` | 禁用编译缓存 | ` --no-cache ` |
374
373
375
374
### 输出选项
376
375
377
376
| 选项 | 描述 | 示例 |
378
377
| ------| ------| ------|
379
- | ` --verbose ` | 详细输出 | ` --verbose ` |
378
+ | ` --debug ` | 详细输出 | ` --debug ` |
380
379
| ` --compile-output ` | 保存编译结果 | ` --compile-output ./output.dll ` |
381
380
| ` --dry-run ` | 仅验证不执行 | ` --dry-run ` |
382
381
@@ -396,19 +395,6 @@ dotnet-exec config set-profile production \
396
395
--configuration Release
397
396
```
398
397
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
-
412
398
## 集成场景
413
399
414
400
### CI/CD 流水线
@@ -427,13 +413,13 @@ echo "config.json" >> .gitignore # 如果包含敏感信息
427
413
428
414
` ` ` sh
429
415
# 代码生成
430
- dotnet-exec codegen/generate-models.cs --input schema.json
416
+ dotnet-exec codegen/generate-models.cs -- -- input schema.json
431
417
432
418
# 数据库迁移
433
- dotnet-exec migrations/migrate.cs --connection-string "$DB_CONN"
419
+ dotnet-exec migrations/migrate.cs -- -- connection-string "$DB_CONN"
434
420
435
421
# 性能测试
436
- dotnet-exec perf/benchmark.cs --iterations 1000
422
+ dotnet-exec perf/benchmark.cs -- -- iterations 1000
437
423
```
438
424
439
425
## 文档
0 commit comments