dotnet-tooling

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

dotnet-tooling

dotnet-tooling

Overview

概述

.NET project setup, build systems, performance, CLI apps, and developer tooling. This consolidated skill spans 32 topic areas. Load the appropriate companion file from
references/
based on the routing table below.
.NET项目设置、构建系统、性能优化、CLI应用及开发工具链。该整合技能涵盖32个主题领域。请根据下方的路由表,从
references/
目录加载对应的配套文件。

Routing Table

路由表

TopicKeywordsDescriptionCompanion File
Project structuresolution, .slnx, CPM, analyzers.slnx, Directory.Build.props, CPM, analyzersreferences/project-structure.md
Scaffold projectdotnet new, CPM, SourceLink, editorconfigdotnet new with CPM, analyzers, editorconfig, SourceLinkreferences/scaffold-project.md
Csproj readingPropertyGroup, ItemGroup, CPM, propsSDK-style .csproj, PropertyGroup, ItemGroup, CPMreferences/csproj-reading.md
MSBuild authoringtargets, props, conditions, Directory.BuildTargets, props, conditions, Directory.Build patternsreferences/msbuild-authoring.md
MSBuild tasksITask, ToolTask, inline tasks, UsingTaskITask, ToolTask, IIncrementalTask, inline tasksreferences/msbuild-tasks.md
Build analysisMSBuild output, NuGet errors, analyzer warningsMSBuild output, NuGet errors, analyzer warningsreferences/build-analysis.md
Build optimizationslow builds, binary logs, parallel, restoreSlow builds, binary logs, parallel, restorereferences/build-optimization.md
Artifacts outputUseArtifactsOutput, ArtifactsPath, CI/DockerUseArtifactsOutput, ArtifactsPath, CI/Docker impactreferences/artifacts-output.md
Multi-targetingmultiple TFMs, polyfills, conditional compilationMultiple TFMs, PolySharp, conditional compilationreferences/multi-targeting.md
Performance patternsSpan, ArrayPool, ref struct, sealed, stackallocSpan, ArrayPool, ref struct, sealed, stackallocreferences/performance-patterns.md
Profilingdotnet-counters, dotnet-trace, flame graphsdotnet-counters, dotnet-trace, dotnet-dump, flame graphsreferences/profiling.md
Native AOTPublishAot, ILLink, P/Invoke, size optimizationPublishAot, ILLink descriptors, P/Invoke, size optimizationreferences/native-aot.md
AOT architecturesource gen, AOT-safe DI, serializationSource gen over reflection, AOT-safe DI, factoriesreferences/aot-architecture.md
Trimmingannotations, ILLink, IL2xxx warnings, IsTrimmableAnnotations, ILLink, IL2xxx warnings, IsTrimmablereferences/trimming.md
GC/memoryGC modes, LOH/POH, Span/Memory, ArrayPoolGC modes, LOH/POH, Gen0/1/2, Span/Memory, ArrayPoolreferences/gc-memory.md
CLI architecturecommand/handler/service, clig.dev, exit codesCommand/handler/service, clig.dev, exit codesreferences/cli-architecture.md
System.CommandLineRootCommand, Option<T>, SetAction, parsingSystem.CommandLine 2.0, RootCommand, Option<T>references/system-commandline.md
Spectre.Consoletables, trees, progress, prompts, live displaysTables, trees, progress, prompts, live displaysreferences/spectre-console.md
Terminal.Guiviews, layout, menus, dialogs, bindings, themesTerminal.Gui v2, views, layout, menus, dialogsreferences/terminal-gui.md
CLI distributionAOT vs framework-dependent, RID matrixAOT vs framework-dependent, RID matrix, single-filereferences/cli-distribution.md
CLI packagingHomebrew, apt/deb, winget, Scoop, ChocolateyHomebrew, apt/deb, winget, Scoop, Chocolateyreferences/cli-packaging.md
CLI release pipelineGHA build matrix, artifact staging, checksumsGHA build matrix, artifact staging, checksumsreferences/cli-release-pipeline.md
Documentation strategyStarlight, Docusaurus, DocFX decision treeStarlight, Docusaurus, DocFX decision treereferences/documentation-strategy.md
XML docstags, inheritdoc, GenerateDocumentationFileXML doc comments, inheritdoc, warning suppressionreferences/xml-docs.md
Tool managementglobal, local, manifests, restore, pinningGlobal/local tools, manifests, restore, pinningreferences/tool-management.md
Version detectionTFM/SDK from .csproj, global.jsonTFM/SDK from .csproj, global.json, Directory.Buildreferences/version-detection.md
Version upgradeLTS-to-LTS, staged, preview, upgrade pathsLTS-to-LTS, staged through STS, preview pathsreferences/version-upgrade.md
Solution navigationentry points, .sln/.slnx, dependency graphsEntry points, .sln/.slnx, dependency graphsreferences/solution-navigation.md
Project analysissolution layout, build config analysisSolution layout, build config, .csproj analysisreferences/project-analysis.md
Modernizeoutdated TFMs, deprecated packages, patternsOutdated TFMs, deprecated packages, superseded patternsreferences/modernize.md
Add analyzersnullable, trimming, AOT compat, severity configNullable, trimming, AOT compat analyzers, severityreferences/add-analyzers.md
Mermaid diagramsarchitecture, sequence, class, ER, flowchartsArchitecture, sequence, class, deployment, ER diagramsreferences/mermaid-diagrams.md
主题关键词描述配套文件
项目结构solution, .slnx, CPM, analyzers.slnx、Directory.Build.props、CPM、代码分析器references/project-structure.md
项目脚手架dotnet new, CPM, SourceLink, editorconfig结合CPM、代码分析器、editorconfig、SourceLink使用dotnet newreferences/scaffold-project.md
Csproj文件读取PropertyGroup, ItemGroup, CPM, propsSDK风格的.csproj、PropertyGroupItemGroup、CPMreferences/csproj-reading.md
MSBuild编写targets, props, conditions, Directory.BuildTargets、props、条件判断、Directory.Build模式references/msbuild-authoring.md
MSBuild任务ITask, ToolTask, inline tasks, UsingTaskITask、ToolTask、IIncrementalTask、内联任务references/msbuild-tasks.md
构建分析MSBuild output, NuGet errors, analyzer warningsMSBuild输出、NuGet错误代码分析器警告references/build-analysis.md
构建优化slow builds, binary logs, parallel, restore构建缓慢问题、二进制日志、并行构建、还原操作references/build-optimization.md
产物输出UseArtifactsOutput, ArtifactsPath, CI/DockerUseArtifactsOutput、ArtifactsPath、对CI/Docker的影响references/artifacts-output.md
多目标框架multiple TFMs, polyfills, conditional compilation多TFMs、PolySharp、条件编译references/multi-targeting.md
性能模式Span, ArrayPool, ref struct, sealed, stackallocSpan、ArrayPool、ref struct、sealed、stackallocreferences/performance-patterns.md
性能分析dotnet-counters, dotnet-trace, flame graphsdotnet-counters、dotnet-trace、dotnet-dump、火焰图references/profiling.md
Native AOTPublishAot, ILLink, P/Invoke, size optimizationPublishAot、ILLink描述符、P/Invoke、体积优化references/native-aot.md
AOT架构source gen, AOT-safe DI, serialization优先使用源代码生成而非反射、AOT兼容的DI、工厂模式references/aot-architecture.md
代码裁剪annotations, ILLink, IL2xxx warnings, IsTrimmable注解、ILLink、IL2xxx警告、IsTrimmablereferences/trimming.md
GC/内存GC modes, LOH/POH, Span/Memory, ArrayPoolGC模式、LOH/POH、Gen0/1/2、Span/Memory、ArrayPoolreferences/gc-memory.md
CLI架构command/handler/service, clig.dev, exit codes命令/处理器/服务模式、clig.dev、退出码references/cli-architecture.md
System.CommandLineRootCommand, Option<T>, SetAction, parsingSystem.CommandLine 2.0、RootCommand、Option<T>references/system-commandline.md
Spectre.Consoletables, trees, progress, prompts, live displays表格、树形结构、进度条、提示框、实时显示references/spectre-console.md
Terminal.Guiviews, layout, menus, dialogs, bindings, themesTerminal.Gui v2、视图、布局、菜单、对话框references/terminal-gui.md
CLI分发AOT vs framework-dependent, RID matrixAOT与框架依赖模式对比、RID矩阵、单文件发布references/cli-distribution.md
CLI打包Homebrew, apt/deb, winget, Scoop, ChocolateyHomebrew、apt/deb、winget、Scoop、Chocolateyreferences/cli-packaging.md
CLI发布流水线GHA build matrix, artifact staging, checksumsGHA构建矩阵、产物暂存、校验和references/cli-release-pipeline.md
文档策略Starlight, Docusaurus, DocFX decision treeStarlight、Docusaurus、DocFX选型决策树references/documentation-strategy.md
XML文档tags, inheritdoc, GenerateDocumentationFileXML文档注释、inheritdoc、警告抑制references/xml-docs.md
工具管理global, local, manifests, restore, pinning全局/本地工具、清单、还原、版本固定references/tool-management.md
版本检测TFM/SDK from .csproj, global.json从.csproj、global.json、Directory.Build获取TFM/SDK版本references/version-detection.md
版本升级LTS-to-LTS, staged, preview, upgrade pathsLTS到LTS升级、通过STS分阶段升级、预览版升级路径references/version-upgrade.md
解决方案导航entry points, .sln/.slnx, dependency graphs入口点、.sln/.slnx、依赖图references/solution-navigation.md
项目分析solution layout, build config analysis解决方案布局、构建配置、.csproj分析references/project-analysis.md
现代化改造outdated TFMs, deprecated packages, patterns过时的TFMs、已弃用的包、被取代的模式references/modernize.md
添加代码分析器nullable, trimming, AOT compat, severity config可空引用、代码裁剪、AOT兼容分析器、Severity配置references/add-analyzers.md
Mermaid图表architecture, sequence, class, ER, flowcharts架构图、时序图、类图、部署图、ER图references/mermaid-diagrams.md

Scope

覆盖范围

  • Solution structure and project scaffolding
  • MSBuild authoring and build optimization
  • Performance patterns and profiling
  • Native AOT, trimming, and GC tuning
  • CLI app development (System.CommandLine, Spectre.Console, Terminal.Gui)
  • Documentation generation (DocFX, XML docs)
  • Tool management and version detection/upgrade
  • Solution navigation and project analysis
  • Code modernization and analyzer configuration
  • Mermaid diagram generation
  • 解决方案结构与项目脚手架
  • MSBuild编写与构建优化
  • 性能模式与性能分析
  • Native AOT、代码裁剪与GC调优
  • CLI应用开发(System.CommandLine、Spectre.Console、Terminal.Gui)
  • 文档生成(DocFX、XML文档)
  • 工具管理与版本检测/升级
  • 解决方案导航与项目分析
  • 代码现代化改造与分析器配置
  • Mermaid图表生成

Out of scope

未覆盖范围

  • Web API patterns -> [skill:dotnet-api]
  • Test authoring -> [skill:dotnet-testing]
  • CI/CD pipelines -> [skill:dotnet-devops]
  • C# language patterns -> [skill:dotnet-csharp]
  • UI framework development -> [skill:dotnet-ui]
  • WinDbg debugging -> [skill:dotnet-debugging]
  • Web API模式 -> [skill:dotnet-api]
  • 测试编写 -> [skill:dotnet-testing]
  • CI/CD流水线 -> [skill:dotnet-devops]
  • C#语言模式 -> [skill:dotnet-csharp]
  • UI框架开发 -> [skill:dotnet-ui]
  • WinDbg调试 -> [skill:dotnet-debugging]

Scripts

脚本

  • scripts/scan-dotnet-targets.py
    -- Scan repository for .NET TFM and SDK version signals
  • scripts/scan-dotnet-targets.py
    -- 扫描仓库中的.NET TFM和SDK版本标记