snippet-project-files
Add or consolidate .NET snippet project files so every snippet directory builds as one project.
معلومات المصدر
- المستودع
- dotnet/dotnet-api-docs
- آخر نشاط في المصدر
- ١١ أغسطس ٢٠٢٦ في ١٦:٤١
- لغة SKILL.md المكتشفة
- الإنجليزية
- النجوم
- ٩٥٤
- التفرعات
- ١٬٧٠٢
خيارات التثبيت
يُحدَّد 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