Skip to content

Rewrite migration articles for App Modernization Agent#2247

Open
adegeo wants to merge 16 commits into
mainfrom
winforms/2165/modernize
Open

Rewrite migration articles for App Modernization Agent#2247
adegeo wants to merge 16 commits into
mainfrom
winforms/2165/modernize

Conversation

@adegeo

@adegeo adegeo commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings June 24, 2026 00:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the WinForms and WPF migration documentation by replacing the retired Upgrade Assistant–based walkthroughs with GitHub Copilot modernization agent guidance, and by introducing a shared migration include used by both stacks.

Changes:

  • Rewrites WinForms and WPF migration landing pages as upgrade-path overviews that include shared migration guidance.
  • Adds new step-by-step WinForms and WPF upgrade tutorials using the GitHub Copilot modernization agent.
  • Updates the WinForms TOC to surface the new overview and tutorial.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
dotnet-desktop-guide/wpf/migration/index.md Replaces the prior how-to content with an overview page and shared migration include.
dotnet-desktop-guide/wpf/migration/how-to-upgrade-wpf.md Adds a new WPF modernization-agent upgrade walkthrough.
dotnet-desktop-guide/winforms/toc.yml Updates WinForms navigation to point to the new overview and upgrade tutorial.
dotnet-desktop-guide/winforms/migration/index.md Replaces the prior how-to content with an overview page and shared migration include.
dotnet-desktop-guide/winforms/migration/how-to-upgrade-winforms.md Adds a new WinForms modernization-agent upgrade walkthrough.
dotnet-desktop-guide/includes/migration-shared.md Introduces shared migration/upgrade guidance consumed by both WinForms and WPF migration overviews.

Comment on lines +4 to +8
author: adegeo
ms.author: adegeo
ms.topic: overview
ms.date: 06/11/2026
ai-usage: ai-assisted
Comment on lines +4 to +8
author: adegeo
ms.author: adegeo
ms.topic: overview
ms.date: 06/11/2026
ai-usage: ai-assisted

Staying current on .NET versions matters too. Each .NET release has a defined support window, and apps running on an out-of-support version stop receiving security patches and fixes. Upgrade before end-of-support to stay protected.

.NET offers meaningful performance improvements across runtime startup, throughput, and memory usage. Desktop apps on .NET also benefits from ongoing feature investment—newer controls, accessibility improvements, high-DPI enhancements, and better integration with Windows such as Dark Mode on Windows 11 are shipped in .NET only. You also gain access to newer C# and Visual Basic language features, improved tooling, and a rich ecosystem of NuGet packages that target .NET.
Comment on lines +125 to +127
> | Windows Forms | 621 | 76.0% | Windows Forms APIs for building Windows desktop applications with traditional Forms-based UI that are available in .NET on Windows. Enable Windows Desktop support: Option 1 (Recommended): Target net9.0-windows; Option 2: Add `<UseWindowsDesktop>true</UseWindowsDesktop>`; Option 3 (Legacy): Use Microsoft.NET.Sdk.WindowsDesktop SDK. |

Most of these issues aren't real problems. Look at the "Migration Path" column for the _GDI+_ row that lists 208 issues. The assessment flags these APIs because they're available in .NET Framework but not in .NET. The column explains the fix: add the `System.Drawing.Common` NuGet package to restore the APIs. The _Windows Forms_ row lists 621 API issues for the same reason. Windows Forms APIs aren't available in .NET by default, but you restore them through the project option `<UseWindowsDesktop>` and by targeting a Windows-specific framework like `net10.0-windows`.
Comment on lines +189 to +190
<OutputType>Library</OutputType>
<MyType>Windows</MyType>
<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<OutputType>Library</OutputType>
- **Flow Mode**: Defaults to **Automatic**. For complex apps, ask the agent to switch to **Guided** mode.
- **Source Control**: Indicates that the agent creates a new working branch.

The agent writes its work to `.github/upgrades/dotnet-version-upgrade/` in your repository. If that folder already exists from a prior attempt, the agent asks whether to continue or start fresh.
- **Flow Mode**: Defaults to **Automatic**. For complex apps, ask the agent to switch to **Guided** mode.
- **Source Control**: Indicates that the agent creates a new working branch.

The agent writes its work to `.github/upgrades/dotnet-version-upgrade/` in your repository. If that folder already exists from a prior attempt, the agent asks whether to continue or start fresh.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WinForms upgrade assistant docs need to be modernized

2 participants