Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
GitHub Copilot modernization works across multiple development environments. Choose your preferred environment to install and set up GitHub Copilot modernization.
Prerequisites
Before you install, make sure you have:
- Windows operating system.
- Visual Studio 2026 (or Visual Studio 2022 version 17.14.17+).
- .NET desktop development workload with these optional components enabled: GitHub Copilot, GitHub Copilot app modernization.
- GitHub Copilot subscription (paid or free).
- Sign in to Visual Studio with a GitHub account that has Copilot access.
- Code written in C# or Visual Basic.
Install
Visual Studio includes GitHub Copilot modernization through the GitHub Copilot app modernization optional component, so you don't need to install it separately. Enable the GitHub Copilot and GitHub Copilot app modernization optional components in the .NET desktop development workload through the Visual Studio Installer.
Verify the installation
- Open a solution in Visual Studio.
- Right-click a project in Solution Explorer and select Modernize, or open GitHub Copilot Chat and type
@Modernize.
Prerequisites
Before you install, make sure you have:
- Visual Studio Code.
- GitHub Copilot extension installed.
- GitHub Copilot subscription (paid or free).
Install
Install as a Visual Studio Code extension:
- In Visual Studio Code, open the Extensions view (Ctrl+Shift+X).
- Search for GitHub Copilot modernization.
- Select Install.
The extension automatically acquires the .NET SDK if it's missing, registers tools, and adds the agent to Copilot Chat as modernize-dotnet.
Verify the installation
Open a project in Visual Studio Code.
Open the GitHub Copilot Chat view.
Send
@modernize-dotnetin chat and confirm the agent responds.-or-
Select the Agent picker and find the
modernize-dotnetentry.
Prerequisites
Before you install, make sure you have:
- GitHub Copilot CLI installed.
- GitHub Copilot subscription (paid or free).
Install
Install through the GitHub Copilot CLI:
Open the GitHub Copilot chat window.
Add the marketplace plugin:
/plugin marketplace add microsoft/upgrade-agent-pluginsInstall the plugin:
/plugin install upgrade-agent@upgrade-agent-plugins
Verify the installation
Run /agent to confirm that upgrade-agent appears in the agent list.
Prerequisites
Before you install, make sure you have:
- GitHub Copilot app installed.
- GitHub Copilot subscription (paid or free).
Install
Install through the GitHub Copilot app:
- Click https://github.com/copilot/app/launch to automatically open the Settings > Plugins window in the GitHub Copilot app.
- In the Add plugin marketplace? dialog, select Allow.
- In the Plugins window, select Add marketplace.
- Expand the upgrade-agent-plugins entry and select Install on the upgrade-agent plugin.
Verify the installation
Run /agent to confirm that upgrade-agent:upgrade appears in the agent list.
-or-
Select the Default agent picker and find the Upgrade entry.