跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/managedcode/PrompterOne/dotnet-format

Codex .NET Format Verification with dotnet format

Check C# formatting against .editorconfig, report drift, and reuse the same verification command in CI.

中文

Install in Codex

You need the .NET SDK, a solution or project path, and the project's style configuration.

  1. Copy the pinned `.codex/skills/dotnet-format/` directory into `.agents/skills/dotnet-format/` in the project.
  2. Run `dotnet format --version` and have Codex read the nearest `AGENTS.md` and `.editorconfig`.

Example task

Alter indentation in a C# file in a local example with `Demo.sln`. Ask Codex to run `dotnet format Demo.sln --verify-no-changes` and report the diagnostics.

What to check

A configured indentation violation produces a nonzero exit code, the file stays intact, and the report identifies the file and rule.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

How do I check whitespace only?

Use `dotnet format whitespace Demo.sln --verify-no-changes` to restrict the check to whitespace drift.

Related skills from this repository

  • Codex .NET Stylelint for wwwroot CSS and SCSS
  • Codex .NET ESLint for React and TypeScript Frontends
  • Codex Lint Published Static .NET HTML with HTMLHint
Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯