modernize-dotnet is published by Microsoft from dotnet/modernize-dotnet, pinned to ce4ec09678498da38099ca9169c1624c59c2a89a. Review the source before installing.
[!WARNING]
modernize-dotnetis deprecated — it has moved toupgrade-agent. This plugin still works today, but new features and fixes now ship only toupgrade-agent(agent@upgrade). Please migrate:/plugin marketplace add microsoft/upgrade-agent-plugins /plugin install upgrade-agent@upgrade-agent-plugins
AI-powered assistance for upgrading and modernizing .NET applications. This plugin adds the modernize-dotnet agent to your Copilot CLI.
Legacy installation
This installs the deprecated
modernize-dotnetplugin, which still works today. For new setups, useupgrade-agentinstead — see the deprecation notice above.
Add the marketplace, then install the plugin:
/plugin marketplace add dotnet/modernize-dotnet
/plugin install modernize-dotnet@modernize-dotnet-plugins
Usage
Use /agent to select modernize-dotnet, then enter your prompt:
upgrade my project to .NET 10
The agent guides you through a structured workflow:
- Assessment — analyzes your project and identifies what needs to change
- Planning — creates a step-by-step upgrade plan
- Execution — applies the changes using specialized tools
MCP Server
The plugin includes an MCP server (Modernization) that provides upgrade and analysis tools. It starts automatically when the modernize-dotnet agent is invoked — no manual configuration needed.
Plugin Structure
modernize-dotnet/
├── .github/
│ └── plugin/
│ └── plugin.json
├── agents/
│ └── modernize-dotnet.agent.md
├── hooks/
│ └── scripts/
│ ├── track-telemetry.ps1
│ └── track-telemetry.sh
└── hooks.json
Requirements
- .NET SDK 10.0 or later