-
Notifications
You must be signed in to change notification settings - Fork 6k
Ji/appmod dotnet containerization #48564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alexwolfmsft
merged 8 commits into
dotnet:main
from
jidddddd:ji/appmod-dotnet-containerization
Sep 23, 2025
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b92cf96
initial commit.
jidddddd 1ec9e17
Containerization doc.
jidddddd 37b365f
edits
alexwolfmsft 90afa91
fixes
alexwolfmsft 8d87dc1
remove extension install
alexwolfmsft 57e14e0
Clarify containerization feature description
alexwolfmsft ff30867
fixes
alexwolfmsft c6c7e09
Update description of app modernization tooling
alexwolfmsft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
title: Containerization your project using GitHub Copilot app modernization for .NET | ||
description: Learn how to containerize your .NET project using GitHub Copilot app modernization for .NET. | ||
ms.topic: quickstart | ||
ms.custom: devx-track-dotnet | ||
ms.date: 09/17/2025 | ||
author: JiDong | ||
ms.author: donji | ||
--- | ||
|
||
# Containerization your project using GitHub Copilot app modernization for .NET | ||
|
||
In this quickstart, you learn how to to containerize your project using [GitHub Copilot app modernization for .NET (Preview)](https://aka.ms/appmod-dotnet-marketplace). | ||
This tool helps you generate dockerfile and build docker image. | ||
|
||
## Prerequisites | ||
|
||
|
||
Check failure on line 18 in docs/azure/migration/appmod/containerization.md
|
||
Before you begin, ensure you have the following prerequisites: | ||
|
||
- A GitHub account with [GitHub Copilot](https://github.com/features/copilot) enabled (Pro, Pro+, Business, or Enterprise plan required) | ||
- [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/) version 17.14.7 or later | ||
- Agent mode enabled for GitHub Copilot in Visual Studio ([Learn how](/visualstudio/ide/copilot-agent-mode)) | ||
|
||
### Sign in to GitHub Copilot | ||
|
||
GitHub Copilot is required for the App Modernization extension. Make sure you're signed-in to GitHub Copilot inside Visual Studio: | ||
|
||
1. Select the Copilot icon at the top of Visual Studio to open the GitHub Copilot pane. | ||
1. Follow the UI prompts to sign in to Copilot. | ||
|
||
For more information, see [Set up GitHub Copilot in Visual Studio](/visualstudio/ide/visual-studio-github-copilot-install-and-states). | ||
|
||
## Install the GitHub Copilot app modernization extension | ||
|
||
To complete the steps in this quickstart, you need to install the GitHub Copilot app modernization for .NET (Preview) Visual Studio extension: | ||
|
||
1. Inside Visual Studio, navigate to **Extensions** > **Manage Extensions**. | ||
1. Search for **GitHub Copilot app modernization for .NET** in the marketplace. | ||
1. On the extension page, select **Install**. | ||
1. Follow the notification bar prompts to close Visual Studio and complete the installation. | ||
1. Relaunch Visual Studio after installation. | ||
|
||
You can also view the [GitHub Copilot app modernization for .NET (Preview)](https://aka.ms/appmod-dotnet-marketplace) extension directly in the extension marketplace. | ||
|
||
For more information, see [Find, install, and manage extensions for Visual Studio](/visualstudio/ide/finding-and-using-visual-studio-extensions). | ||
|
||
## Containerize your project | ||
|
||
The App Modernization for .NET containerization feature helps you containerize your project. Follow these step to start the containerization process: | ||
|
||
1. In Visual Studio, open your project. | ||
|
||
1. Start containerization using one of the following approaches: | ||
|
||
- **Conatinerize from Assessment Report**: From the assessment report, click on "Run Task" for the Docker Containerization issue. | ||
|
||
:::image type="content" source="media/containerize-assessment-report.png" alt-text="Screenshot showing containerization task in assessment report."::: | ||
|
||
- **Use a containerization prompt**: You can input the following prompt in Copilot chat to containerize your project: | ||
|
||
*Scan my project and help me plan how to containerize my application using the #appmod-get-containerization-plan tool. Execute the plan. The end goal is to have Dockerfiles that are able to be built.* | ||
|
||
:::image type="content" source="media/containerization-prompt.png" alt-text="Screenshot showing how to start the containerization process in GitHub Copilot using a prompt."::: | ||
|
||
1. After you start the process, GitHub Copilot might ask for your approval to use tools or run commands. Grant permission when prompted. | ||
|
||
1. GitHub Copilot analyzes your project and generates a plan. The plan includes a breakdown of your project and execution steps for containerizing your project. | ||
|
||
1. GitHub Copilot follows the execution steps to generate Dockerfile and validate your docker image can be built successfully. | ||
|
||
1. Once GitHub Copilot finishes the containerizing your project, it will provide a summary of what it did. | ||
|
||
## Notes | ||
|
||
- We recommend using Claude Sonnet 4 or later models for the best results. | ||
- It might take Copilot a few iterations to correct containerization errors. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.