Executive Summary
Millions of line-of-business enterprise systems remain anchored to legacy .NET Framework runtimes (.NET 4.6–4.8), locked into outdated architectures such as ASP.NET WebForms, WCF, and legacy Entity Framework 6. While these applications generate critical business value, they cannot take advantage of modern .NET innovations: 30%+ throughput gains in Kestrel, Native AOT compilation, Linux containerization, cross-platform ARM64 hosting, and .NET Aspire cloud-native orchestration.
Upgrading legacy applications is notoriously difficult because modernization is never just a version bump. It requires re-architecting project files (.csproj SDK style), replacing obsolete dependencies, refactoring retired System.Web APIs, rewriting data-binding architectures, and migrating UI page lifecycles.
In this session, Mika Dumont demonstrates the GitHub Copilot Upgrade Agent—an autonomous agentic modernization experience available across the GitHub Copilot App (powered by Canvas), Visual Studio, VS Code, the Copilot CLI, and the Modernize CLI for portfolio-scale enterprise refactoring. Using the canonical eShop WebForms monolithic application, Dumont demonstrates the end-to-end upgrade loop: automated dependency assessment, interactive plan customization, side-by-side architecture scaffolding, dynamic task decomposition into ten sub-tasks, multi-commit progress tracking, and final zero-error build validation on .NET 11.
Visual Timeline & Key Moments
| Timestamp | Screenshot | Core Technical Topic |
|---|---|---|
00:00:15 |
01-title-modernize-dotnet-copilot.jpg | Session introduction: Mika Dumont on automating .NET application modernization with GitHub Copilot. |
00:00:45 |
02-why-modernize-performance-cloud.jpg | The Case for Modernization: 30%+ performance gains, Linux containerization, security fixes, and lower maintenance. |
00:01:20 |
03-copilot-upgrade-agent-overview.jpg | Upgrade Agent Lifecycle: Four autonomous phases—Assess, Plan, Apply, and Validate. |
00:01:55 |
04-eshop-webforms-agent-picker.jpg | Selecting the dedicated Upgrade Agent (@upgrade) inside the GitHub Copilot App for eShop WebForms. |
00:02:40 |
05-configuration-options-branch-mode.jpg | Options Wizard: Target framework (.NET 11), Git branch isolation, Automatic vs. Guided mode, commit strategy. |
00:03:25 |
06-upgrade-agent-dashboard-canvas.jpg | The Upgrade Agent Dashboard: Canvas-based visual workspace showing active tasks and repo metrics. |
00:04:15 |
07-assessment-report-41-incidents.jpg | Assessment Report: Discovering 41 incidents, 29 mandatory issues, and 13 incompatible packages. |
00:05:15 |
08-customizing-plan-keep-ef6.jpg | Plan Customization: Steering the agent to "Keep Entity Framework 6 and minimize DB changes". |
00:06:40 |
09-generated-plan-task-list.jpg | Generated Plan: Hierarchical task list initiating with .NET 11 SDK environment verification. |
00:07:35 |
10-scaffolding-aspnetcore-host.jpg | Side-by-Side Scaffolding: Creating modern ASP.NET Core host alongside the existing WebForms project. |
00:08:25 |
11-activity-monitor-commit-timeline.jpg | Activity Monitor: Real-time file change tracker and multi-commit timeline recording code progress. |
00:09:50 |
12-dynamic-task-decomposition-10-tasks.jpg | Dynamic Task Decomposition: Agent breaking monolithic page migrations into 10 smaller, parallelizable subtasks. |
00:11:35 |
13-custom-team-skills-integration.jpg | Custom Enterprise Skills: Agent loading team coding guidelines and architectural rules from .github/copilot/. |
00:13:10 |
14-progress-50-percent-681-files.jpg | Milestone Progress: 7 of 14 tasks completed (681 files modified, 7 discrete commits logged). |
00:14:10 |
15-tree-view-code-diffs.jpg | Tree View Diff Inspector: Visualizing AST modifications converting WebForms markup to modern controllers/views. |
00:16:55 |
16-upgrade-complete-zero-errors-aspire-next.jpg | Upgrade Complete: Zero build errors, running natively on ASP.NET Core .NET 11 with Aspire/ARM64 next steps. |
1. The Modernization Dilemma: Beyond the Version Bump
Legacy applications running on .NET Framework 4.8 face severe enterprise constraints:
- Hosting Lock-in: Anchored to Windows Server and full IIS; unable to leverage lightweight Linux containers or Kubernetes clusters.
- Performance Deficits: Lacks Kestrel's asynchronous socket pipeline, Native AOT compilation, and modern memory optimizations (Spans, ArrayPool).
- Security & Compliance: Third-party package ecosystems have dropped .NET Framework support, preventing CVE remediation.
┌─────────────────────────────────────────────────────────────┐
│ WHY MODERNIZATION IS HARD │
│ │
│ ❌ Project Format: Legacy XML .csproj with GUID references │
│ ❌ UI Architecture: System.Web.UI, ViewState, PostBacks │
│ ❌ Dependencies: Incompatible NuGet packages & GAC refs│
│ ❌ Data Access: Legacy EF6 EDMX models & ObjectContext │
│ ❌ Lifecycle: Global.asax, HttpModules, HttpHandlers │
└──────────────────────────────┬──────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ THE COPILOT UPGRADE AGENT FOUR-STAGE LOOP │
│ │
│ [1. Assess] ──> Discovers issues, versions & GAC refs │
│ [2. Plan] ──> Decomposes tasks & defines strategy │
│ [3. Apply] ──> Scaffolds, refactors code & commits │
│ [4. Validate] ──> Builds, verifies tests & benchmarks │
└─────────────────────────────────────────────────────────────┘
2. The Four Stages of the Upgrade Agent Lifecycle
The GitHub Copilot Upgrade Agent operates through four tightly coupled phases:
Stage 1: Autonomous Assessment
Upon being invoked, the agent scans the repository and generates an Assessment Report:
- Identifies the target runtime and incompatible dependencies.
- Discovers mandatory package updates vs. optional improvements.
- Flags deprecated APIs (e.g.
System.Web.HttpContext.Current,FormsAuthentication). - Generates sprint estimation metrics that can be shared across engineering leadership.
Stage 2: Interactive Plan Generation & Steering
The agent does not blindly apply destructive changes. Instead, it generates an editable, structured plan:
- Strategy Choice: Side-by-side host scaffolding (recommended for large monoliths) vs. in-place destructive rewrite.
- Interactive Customization: The human developer can edit constraints directly in chat (e.g. "Retain EF6 instead of migrating to EF Core to minimize database code changes").
- Test Generation Integration: Wires into test agents to automatically author verification unit tests at migration completion.
Stage 3: Progressive Application & Dynamic Decomposition
The agent executes the plan step-by-step:
- Dynamically splits broad tasks into smaller, manageable sub-tasks.
- Scaffolds new SDK-style project hosts.
- Converts legacy
.aspxmarkup and.aspx.cscode-behinds into modern ASP.NET Core Razor Pages, Controllers, and ViewModels. - Commits atomically after each subtask to ensure rollback safety.
Stage 4: Continuous Build & Test Validation
After mutating code, the agent executes compiler builds and runs test suites, automatically repairing compiler diagnostic errors until a zero-error build is achieved.
3. Walkthrough: Upgrading eShop WebForms to .NET 11
Dumont demonstrates migrating eShopOnWeb, a classic ASP.NET WebForms application targeting .NET Framework 4.8 with SQL Server and Entity Framework 6.
Step 1: Configuration Options Wizard
Selecting @upgrade opens the configuration wizard:
- Target Framework:
.NET 11(with options for .NET 8 LTS, .NET 9, and .NET 10). - Branch Strategy: Creates and checks out a dedicated isolated Git branch (
upgrade/dotnet11-eshop). - Execution Mode: Automatic mode (runs end-to-end; pauses only if human intervention is required) vs. Guided mode (pauses after each milestone for manual review).
- Commit Cadence: Atomic commit created after each individual task.
Step 2: Assessment Findings
The agent scans the solution and uncovers:
- 41 Total Incidents: High, medium, and low severity migration blockers.
- 29 Mandatory Issues: Core incompatibilities with .NET 11.
- 13 Incompatible Packages: Packages requiring immediate replacement or version elevation.
Step 3: Human Steering: Retaining Entity Framework 6
Rather than forcing a risky and time-consuming migration from EF6 to EF Core simultaneously with the WebForms upgrade, Dumont enters a prompt refinement:
Keep Entity Framework 6 and make minimum changes to the DB code.
The agent modifies the architectural plan immediately, retaining the EF6 package dependencies while updating their hosting context to run under the modern .NET 11 runtime.
flowchart TD
subgraph LegacyMonolith["1. Legacy eShop Monolith (.NET Framework 4.8)"]
WF["WebForms (.aspx)"]
CS["Code-Behind (.aspx.cs)"]
EF["Entity Framework 6"]
SYSWEB["System.Web / IIS"]
end
subgraph SideBySide["2. Side-by-Side Scaffolding (Upgrade Agent)"]
CORE_HOST["ASP.NET Core Host (.NET 11)"]
YARP["Incremental Reverse Proxy (YARP)"]
CORE_HOST <==> YARP <==> LegacyMonolith
end
subgraph MigratedApp["3. Completed Modern Application (.NET 11)"]
CONTROLLERS["ASP.NET Core Controllers & Views"]
EF6_NET11["EF6 running on .NET 11"]
KESTREL["Kestrel Web Server (Linux / Containers)"]
ASPIRE["Optional: .NET Aspire Cloud-Native Orchestration"]
end
LegacyMonolith ==> SideBySide ==> MigratedApp
Step 4: The Canvas Dashboard & Dynamic Task Decomposition
The GitHub Copilot App displays the Upgrade Dashboard (Canvas):
- Active Task Monitoring: Displays exact running sub-processes (e.g., verifying .NET 11 SDK, scaffolding
Microsoft.NET.Sdk.Web). - Dynamic Task Decomposition: When encountering the complex task "Migrate web form pages, services, and data access", the agent realizes the scope is too broad and autonomously decomposes it into 10 discrete subtasks:
- Porting Catalog Details views.
- Migrating About and Contact pages.
- Refactoring user authentication cookies.
- Wiring dependency injection services in
Program.cs. - Migrating data access repository wrappers.
- Activity Monitor & Commit History: Tracks real-time diffs across 681 modified files and logs 7 clean Git commits.
Step 5: Enterprise Skills Support
The Upgrade Agent respects enterprise repository guidelines. Teams can place custom guidelines or skills inside .github/copilot/ or .copilot/skills/:
- Enforces corporate architectural boundaries (e.g. naming conventions, Clean Architecture folder structures).
- Preserves specific logging frameworks (e.g. Serilog configuration).
Step 6: Zero-Error Build & Runtime Verification
At completion:
- The agent runs
dotnet build, resolving last-mile namespace issues until the build achieves 0 Errors. - Visual Studio launches the modernized eShop app: the UI renders identically, but is now served via Kestrel on ASP.NET Core .NET 11.
- Next-step recommendations are presented: adding .NET Aspire orchestration and compiling for ARM64 container environments.
4. Multi-Surface Availability
The GitHub Copilot Upgrade Agent is accessible across the entire developer ecosystem:
| Surface | Target Persona & Workflow |
|---|---|
| GitHub Copilot App (Canvas) | Visual interactive dashboard with timeline, tree-view diffs, and deep task decomposition. |
| Visual Studio 18.12+ | Direct IDE integration within Solution Explorer and Copilot Chat (@upgrade). |
| Visual Studio Code | Polyglot development via C# Dev Kit and Copilot Chat. |
| GitHub Copilot CLI | Headless terminal loops for command-line developers (copilot upgrade). |
| Copilot Cloud Agent (GitHub.com) | Autonomous cloud agent running migrations directly on GitHub pull requests. |
| Modernize CLI | Enterprise portfolio-scale CLI for batch-modernizing hundreds of repositories across an organization. |
Technical Recommendations for .NET Engineering Teams
- Adopt Side-by-Side Migration: Never perform destructive in-place rewrites on large legacy monoliths. Use the Upgrade Agent's side-by-side scaffolding to preserve working production systems while incrementally shifting routes.
- Decouple UI Modernization from Data Layer Migrations: Do not attempt to migrate from WebForms to ASP.NET Core AND from EF6 to EF Core simultaneously. Use prompt steering to keep EF6 intact on modern .NET before tackling EF Core.
- Commit Custom Team Skills to
.github/copilot/: Embed your organization's architectural rules and library preferences as Copilot skills to guide the Upgrade Agent's code generation. - Use Automatic Mode for Batch Upgrades: Run the Upgrade Agent in Automatic mode on isolated branches overnight, reviewing the resulting atomic Git commits and test passes the following morning.















