Skip to main content

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에서 보기