Introduction
Back in 2018, smart speakers like Alexa and Google Assistant were still popular and gaining ground. I wrote a YAML-driven scripting engine to drive voice applications that started on .NET Core 2.0. It was manually migrated to .NET 5 and then .NET 7, where it sat abandoned for a few years as the promise of smart speakers was not realized.
Alexa is still around, and so is my code base. The GitHub Copilot app modernization – upgrade for .NET Visual Studio extension was covered at Microsoft Build 2025 in the session: The Future of .NET App Modernization Streamlined with AI. I wanted to see how it performs with my .NET 7 application. The Microsoft product team is working on adding support for migration from the .NET Framework. In the meantime, use the .NET Upgrade Assistant.
GitHub also provides AI assistance with automatic remediation of code security vulnerabilities and code quality issues. Copilot can also be assigned to review pull requests.
Modernizing from .NET 7 to .NET 9
The repository to migrate is hosted on GitHub at storyengine. The main branch is already migrated, but the original .NET 7 code is in the storyengine-original branch. The GitHub Copilot app modernization – upgrade for .NET adds an Upgrade with GitHub Copilot option to the solution context menu. As of now, this extension supports the following project types:
- ASP.NET MVC
- Windows Forms
- Windows Presentation Foundation (WPF)
- UWP to Windows App SDK (WinUI)
- Xamarin.Forms to .NET MAUI
- Azure Functions
- Console
- Library
Several vulnerable NuGet packages, including MessagePack 2.4.59, are identified in the Solution Explorer. I would like to address these issues as part of the upgrade.

Selecting this option kicks off an upgrade assessment process in the GitHub Copilot chat window. I selected .NET 9.

It will then ask whether you want to use the current branch as the source of the upgrade and what to name the new branch that has the upgraded code. I used the suggested branch name upgrade-to-NET9-1.

Great! It recognized that the solution includes insecure Nuget packages.

A tentative execution plan is produced in a markdown file with details about the affected projects and upgraded packages.

I want a few more changes and ask to “Upgrade all packages to the latest versions. Do not use preview versions.” Each request results in a new execution plan. Some are marked as Deprecated, and others are included in .NET 9. I ask the migration assistant to “Remove package references that are included in .NET 9.”




Join the conversation! Your thoughts help the community grow.