snippet-project-files
Add or consolidate .NET snippet project files so every snippet directory builds as one project.
ソース情報
- リポジトリ
- dotnet/dotnet-api-docs
- ソースの最終更新活動
- 2026年8月11日 16:41
- 検出された SKILL.md の言語
- 英語
- スター
- 954
- フォーク
- 1,702
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
SKILL.md を表示中
SKILL.md
ソースの指示 · 読み取り専用プレビュー- name
- snippet-project-files
- description
- Add or consolidate .NET snippet project files so every snippet directory builds as one project.
# Snippet project files
When adding or fixing project files under `snippets/`:
1. Keep exactly one project file in each directory.
2. Use SDK-style projects and the default compile includes. Don't add explicit `<Compile Include="...">` items.
3. Set `OutputType` to `Exe` when the directory contains an entry point or top-level statements. Otherwise, use `Library`.
4. If multiple source files define `Main`, rename each method to `Run`.
5. Give duplicate types in the same directory unique names.
6. Add one `Program.cs` file that calls every `Run` method, passing `args` to methods that accept command-line arguments.
7. Build the consolidated project and fix all compile errors.
GitHubで見る