MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Containerize-Aspnet-Framework

Containerize-Aspnet-Framework是一款code方向的AI技能,核心价值是Containerize an ASP,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Containerize an ASP.NET .NET Framework project by creating Dockerfile and .dockerfile files customized for the project.

Last verified on: 2026-05-30
mkdir -p ./skills/containerize-aspnet-framework && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/containerize-aspnet-framework/SKILL.md -o ./skills/containerize-aspnet-framework/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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

1. Project to containerize:

- `[ProjectName (provide path to .csproj file)]`


2. Windows Server SKU to use:

- `[Windows Server Core (Default) or Windows Server Full]`


3. Windows Server version to use:

- `[2022, 2019, or 2016 (Default 2022)]`


4. 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)]`


5. 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

1. Ports that must be exposed in the container image:

- Primary HTTP port: `[e.g., 80]`

- Additional ports: `[List any additional ports, or "None"]`


2. User account the container should run as:

- `[User account, or default to "ContainerUser"]`


3. IIS settings that must be configured in the container image:

- `[List any specific IIS settings, or "None"]`


Build configuration

1. Custom build steps that must be performed before building the container image:

- `[List any specific build steps, or "None"]`


2. Custom build steps that must be performed after building the container image:

- `[List any specific build steps, or "None"]`


Dependencies

1. .NET assemblies that should be registered in the GAC in the container image:

- `[Assembly name and version, or "None"]`


2. MSIs that must be copied to the container image and installed:

- `[MSI names and versions, or "None"]`


3. COM components that must be registered in the container image:

- `[COM component names, or "None"]`


System Configuration

1. Registry keys and values that must be added to the container image:

- `[Registry paths and values, or "None"]`


2. Environment variables that must be set in the container image:

- `[Variable names and values, or "Use defaults"]`


3. Windows Server roles and features that must be installed in the container image:

- `[Role/feature names, or "None"]`


File System

1. 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"]`


2. Files/directories to exclude from containerization:

- `[Paths to exclude, or "None"]`


.dockerignore Configuration

1. Patterns to include in the `.dockerignore` file (.dockerignore will already have common defaults; these are additional patterns):

- Additional patterns: `[List any additional patterns, or "None"]`


Health Check Configuration

1. Health check endpoint:

- `[Health check URL path, or "None"]`


2. Health check interval and timeout:

- `[Interval and timeout values, or "Use defaults"]`


Additional Instructions

1. Other instructions that must be followed to containerize the project:

- `[Specific requirements, or "None"]`


2. Known issue

🎯 Best For

  • Claude users
  • GitHub Copilot users
  • Software engineers
  • Development teams
  • Tech leads

💡 Use Cases

  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Containerize-Aspnet-Framework to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Is Containerize-Aspnet-Framework compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Containerize-Aspnet-Framework?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Containerize-Aspnet-Framework?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/containerize-aspnet-framework/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills