Generate Dockerfile and configuration files to containerize an ASP.NET .NET Framework application for Windows containers.
Works with
Detects .NET Framework version from project file and selects appropriate Windows Server base images (Core or Full, versions 2016–2022)
Modifies web.config to enable environment variable configuration via ConfigurationBuilders for app settings and connection strings
Creates multi-stage Dockerfile with separate build (SDK) and runtime (ASP.NET) stages, including Log
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versioncontainerize-aspnet-frameworkExecute the skills CLI command in your project's root directory to begin installation:
Fetches containerize-aspnet-framework from github/awesome-copilot and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate containerize-aspnet-framework. Access via /containerize-aspnet-framework in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
28.7K
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
28.7K
stars
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.
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].
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)]Ports that must be exposed in the container image:
[e.g., 80][List any additional ports, or "None"]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"]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"].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"]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"]Files/directories that need to be copied to the container image:
[Paths relative to project root, or "None"][Container paths, or "Not applicable"]Files/directories to exclude from containerization:
[Paths to exclude, or "None"].dockerignore file (.dockerignore will already have common defaults; these are additional patterns):
[List any additional patterns, or "None"]Health check endpoint:
[Health check URL path, or "None"]Health check interval and timeout:
[Interval and timeout values, or "Use defaults"]Other instructions that must be followed to containerize the project:
[Specific requirements, or "None"]Known issues to address:
[Describe any known issues, or "None"]progress.md file to track changes with check marksTargetFrameworkVersion elementMicrosoft.Configuration.ConfigurationBuilders.Environmentweb.config file to add configuration builders section and settings to read app settings and connection strings from environment variables:
<configSections>
<section name="configBuilders" type="System.Configuration.ConfigurationBuildersSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" restartOnExternalChanges="false" requirePermission="false" />
</configSections>
<configBuilders>
<builders>
<add name="Environment" type="Microsoft.Configuration.ConfigurationBuilders.EnvironmentConfigBuilder, Microsoft.Configuration.ConfigurationBuilders.Environment" />
</builders>
</configBuilders>
<appSettings configBuilders="Environment">
<!-- existing app settings -->
</appSettings>
<connectionStrings configBuilders="Environment">
<!-- existing connection strings -->
</connectionStrings>
LogMonitorConfig.json file in the folder where the Dockerfile will be created by copying the reference LogMonitorConfig.json file at the end of this prompt. The file's contents MUST NOT not be modified and should match the reference content exactly unless instructions in containerization settings specify otherwise.
Information level for EventLog sources will cause unnecessary noise.mcr.microsoft.com/dotnet/framework/sdk base image unless a custom base image is specified in the settings filemcr.microsoft.com/dotnet/framework/aspnet base image unless a custom base image is specified in the settings fileLogMonitorConfig.json file to a directory in the container (e.g., C:\LogMonitor)ENTRYPOINT [ "C:\\LogMonitor\\LogMonitor.exe", "C:\\ServiceMonitor.exe", "w3svc" ].dockerignore file in the root of the project directory to exclude unnecessary files from the Docker image. The .dockerignore file MUST include at least the following elements as well as additional patterns as specified in the containerization settings:
<None Include="Dockerfile" />confirm that Docker build succeeds once the Dockerfile is completed. Use the following command to build the Docker image:
docker build -t aspnet-app:latest .
If the build fails, review the error messages and make necessary adjustments to the Dockerfile or project configuration. Report success/failure.
Maintain a progress.md file with the following structure:
# Containerization Progress
## Environment Detection
- [ ] .NET Framework version detection (version: ___)
- [ ] Windows Server SKU selection (SKU: ___)
- [ ] Windows Server version selection (Version: ___)
## Configuration Changes
- [ ] Web.config modifications for configuration builders
- [ ] NuGet package source configuration (if applicable)
- [ ] Copy LogMonitorConfig.json and adjust if required by settings
## Containerization
- [ ] Dockerfile creation
- [ ] .dockerignore file creation
- [ ] Build stage created with SDK image
- [ ] sln, csproj, packages.config, and (if applicable) NuGet.config copied for package restore
- [ ] Runtime stage created with runtime image
- [ ] Non-root user configuration
- [ ] Dependency handling (GAC, MSI, COM, registry, additional files, etc.)
- [ ] Health check configuration (if applicable)
- [ ] Special requirements implementation
## Verification
- [ ] Review containerization settings and make sure that all requirements are met
- [ ] Docker build success
Do not pause for confirmation between steps. Continue methodically until the application has been containerized and Docker build succeeds.
YOU ARE NOT DONE UNTIL ALL CHECKBOXES ARE MARKED! This includes building the Docker image successfully and addressing any issues that arise during the build process.
An example Dockerfile for an ASP.NET (.NET Framework) application using a Windows Server Core base image.
# escape=`
# The escape directive changes the escape character from \ to `
# This is especially useful in Windows Dockerfiles where \ is the path separator
# ============================================================
# Stage 1: Build and publish the application
# ============================================================
# Base Image - Select the appropriate .NET Framework version and Windows Server Core version
# Possible tags include:
# - 4.8.1-windowsservercore-ltsc2025 (Windows Server 2025)
# - 4.8-windowsservercore-ltsc2022 (Windows Server 2022)
# - 4.8-windowsservercore-ltsc2019 (Windows Server 2019)
# - 4.8-windowsservercore-ltsc2016 (Windows Server 2016)
# - 4.7.2-windowsservercore-ltsc2019 (Windows Server 2019)
# - 4.7.2-windowsservercore-ltsc2016 (Windows Server 2016)
# - 4.7.1-windowsservercore-ltsc2016 (Windows Server 2016)
# - 4.7-windowsservercore-ltsc2016 (Windows Server 2016)
# - 4.6.2-windowsservercore-ltsc2016 (Windows Server 2016)
# - 3.5-windowsservercore-ltsc2025 (Windows Server 2025)
# - 3.5-windowsservercore-ltsc2022 (Windows Server 2022)
# - 3.5-windowsservercore-ltsc2019 (Windows Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
github/awesome-copilot
github/awesome-copilot
github/awesome-copilot
github/awesome-copilot
github/awesome-copilot
narumiruna/telegram-bot
I recommend containerize-aspnet-framework for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Useful defaults in containerize-aspnet-framework — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
containerize-aspnet-framework reduced setup friction for our internal harness; good balance of opinion and flexibility.
containerize-aspnet-framework has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: containerize-aspnet-framework is focused, and the summary matches what you get after install.
Useful defaults in containerize-aspnet-framework — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Solid pick for teams standardizing on skills: containerize-aspnet-framework is focused, and the summary matches what you get after install.
containerize-aspnet-framework has been reliable in day-to-day use. Documentation quality is above average for community skills.
I recommend containerize-aspnet-framework for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Registry listing for containerize-aspnet-framework matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 32