containerize-aspnet-framework
ما الذي تفعله
تنشئ هذه المهارة التعليمات اللازمة (وتسمى Dockerfile) لتحويل مشروع ASP.NET .NET Framework إلى حاوية. وهذا يتيح أن يعمل تطبيقك بثبات في أي مكان.
متى تستخدمها
- ✓عندما تريد تشغيل تطبيق ASP.NET الخاص بك على خادم آخر.
- ✓عند تجهيز تطبيقك للنشر على السحابة.
- ✓لضمان أن يعمل تطبيقك بالطريقة نفسها في بيئات الاختبار المختلفة.
رابط المهارة
https://github.com/github/awesome-copilot/blob/main/skills/containerize-aspnet-framework/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حوّل مشروع ASP.NET الخاص بي الموجود في «C:\myproject\myproject.csproj» إلى حاوية، باستخدام Windows Server 2022 Core، وفتح المنفذ 80.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تحلل هذه المهارة الإعدادات التي تقدمها، مثل مسار المشروع والمنافذ. ثم تُنشئ ملفاً اسمه Dockerfile يحتوي على كل الأوامر لبناء تطبيقك وتشغيله داخل بيئة معزولة (حاوية).
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
ASP.NET .NET Framework Containerization Prompt
Containerize the ASP.NET (.NET Framework) project specified in the containerization settings below, focusing exclusively on changes required for the application to run in a Windows Docker container. Containerization should consider all settings specified here.
REMEMBER: This is a .NET Framework application, not .NET Core. The containerization process will be different from that of a .NET Core application.
Containerization Settings
This section of the prompt contains the specific settings and configurations required for containerizing the ASP.NET (.NET Framework) application. Prior to running this prompt, ensure that the settings are filled out with the necessary information. Note that in many cases, only the first few settings are required. Later settings can be left as defaults if they do not apply to the project being containerized.
Any settings that are not specified will be set to default values. The default values are provided in [square brackets].
Basic Project Information
Project to containerize:
[ProjectName (provide path to .csproj file)]
Windows Server SKU to use:
[Windows Server Core (Default) or Windows Server Full]
Windows Server version to use:
[2022, 2019, or 2016 (Default 2022)]
Custom base image for the build stage of the Docker image ("None" to use standard Microsoft base image):
[Specify base image to use for build stage (Default None)]
Custom base image for the run stage of the Docker image ("None" to use standard Microsoft base image):
[Specify base image to use for run stage (Default None)]
Container Configuration
Ports that must be exposed in the container image:
- Primary HTTP port:
[e.g., 80] - Additional ports:
[List any additional ports, or "None"]
- Primary HTTP port:
User account the container should run as:
[User account, or default to "ContainerUser"]
IIS settings that must be configured in the container image:
[List any specific IIS settings, or "None"]
Build configuration
Custom build steps that must be performed before building the container image:
[List any specific build steps, or "None"]
Custom build steps that must be performed after building the container image:
[List any specific build steps, or "None"]
Dependencies
.NET assemblies that should be registered in the GAC in the container image:
[Assembly name and version, or "None"]
MSIs that must be copied to the container image and installed:
[MSI names and versions, or "None"]
COM components that must be registered in the container image:
[COM component names, or "None"]
System Configuration
Registry keys and values that must be added to the container image:
[Registry paths and values, or "None"]
Environment variables that must be set in the container image:
[Variable names and values, or "Use defaults"]
Windows Server roles and features that must be installed in the container image:
[Role/feature names, or "None"]
File System
Files/directories that need to be copied to the container image:
[Paths relative to project root, or "None"]- Target location in container:
[Container paths, or "Not applicable"]
Files/directories to exclude from containerization:
[Paths to exclude, or "None"]
.dockerignore Configuration
- Patterns to include in the
.dockerignorefile (.dockerignore will already have common defaults; these are additional patterns):- Additional patterns:
[List any additional patterns, or "None"]
- Additional patterns:
Health Check Configuration
Health check endpoint:
[Health check URL path, or "None"]
Health check interval and timeout:
[Interval and timeout values, or "Use defaults"]
Additional Instructions
Other instructions that must be followed to containerize the project:
[Specific requirements, or "None"]
Known issues to address:
[Describe any known issues, or "None"]
Scope
- ✅ App configuration modification to ensure config builders are used to read app settings and connection strings from the environment variables
- ✅ Dockerfile creation and configuration for an ASP.NET application
- ✅ Specifying multiple stages in the Dockerfile to build/publish the application and copy the output to the final image
- ✅ Configuration of Windows container platform compatibility (Windows Server Core or Full)
…
الأسئلة الشائعة
ما هي الحاوية (container)؟
الحاوية صندوق خفيف ومعزول يحتوي كل ما يحتاجه تطبيقك ليعمل: الكود والمكتبات والإعدادات. وهذا يضمن أن يعمل بالطريقة نفسها على أي حاسوب.
ما الفرق بين .NET Framework وNET Core؟
.NET Framework إصدار أقدم يُستخدم عادةً على أنظمة Windows. أما .NET Core (أصبح يُسمى .NET فقط) فهو أحدث، ومتعدد المنصات، ومرن. وهذه المهارة خاصة بـ .NET Framework.
هل أحتاج إلى تثبيت شيء مسبقاً؟
نعم، يجب أن يكون لدى المشروع حزمة NuGet اسمها «Microsoft.Configuration.ConfigurationBuilders.Environment» مثبتة. وإذا لم تكن مثبتة، فعليك تثبيتها يدوياً في Visual Studio قبل استخدام هذه المهارة.
التفاصيل
الوصف الأصلي من المؤلف
Containerize an ASP.NET .NET Framework project by creating Dockerfile and .dockerfile files customized for the project.
repo: github/awesome-copilot
الشعبية
- نجوم GitHub
- 40k
- الترتيب
- #7116
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
acquire-codebase-knowledge
40kيساعد وكيلك على فهم مشروع برمجي موجود وتوثيقه. مفيد لتعريف الأشخاص الجدد أو للحصول على نظرة عامة على البنية.
acreadiness-assess
40kيمكّن وكيلك من تقييم جاهزية مشروع للذكاء الاصطناعي وإنشاء تقرير. مفيد لمعرفة مدى استعداد المشروع لاستخدام أدوات الذكاء الاصطناعي.
acreadiness-generate-instructions
40kيساعد وكيلك على إنشاء تعليمات لأدوات الذكاء الاصطناعي بناءً على تقييم. مفيد لتحسين طريقة تفاعل الذكاء الاصطناعي مع الكود وسد الثغرات المحددة.
acreadiness-policy
40kيمكّن وكيلك من تحديد أو تطبيق سياسات لتقييم مشاريع الذكاء الاصطناعي. مفيد لتوحيد طريقة تقييم المشاريع وضمان الالتزام.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.