You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/porting/how-to-upgrade-with-github-copilot.md
+89-1Lines changed: 89 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: adegeo
5
5
ms.author: adegeo
6
6
ms.topic: how-to
7
7
ms.date: 09/15/2025
8
-
ai-usage: ai-generated
8
+
ai-usage: ai-assisted
9
9
10
10
#customer intent: As a developer, I want to upgrade my .NET app using GitHub Copilot app modernization so that I can modernize my codebase efficiently with AI assistance.
11
11
@@ -61,6 +61,41 @@ To generate and customize your plan:
61
61
> [!CAUTION]
62
62
> The plan is generated based on the inter-dependencies of your projects. The upgrade won't succeed if you modify the plan in such a way that the migration path can't complete. For example, if **Project A** depends on **Project B** and you remove **Project B** from the upgrade plan, upgrading **Project A** might fail.
63
63
64
+
The following snippet demonstrates the structure of a plan:
65
+
66
+
```md
67
+
# .NET 9.0 Upgrade Plan
68
+
69
+
## Execution Steps
70
+
71
+
1. Validate that an .NET 9.0 SDK required for this upgrade is installed on the machine and if not, help to get it installed.
72
+
2. Ensure that the SDK version specified in global.json files is compatible with the .NET 9.0 upgrade.
73
+
3. Upgrade projects to .NET 9.0.
74
+
- 3.1. Upgrade RazorMovie.csproj
75
+
- 3.2. Upgrade RazorMovie.Tests.csproj
76
+
4. Run unit tests to validate upgrade in the projects listed below:
77
+
- RazorMovie.Tests.csproj
78
+
79
+
## Settings
80
+
81
+
This section contains settings and data used by execution steps.
82
+
83
+
### Aggregate NuGet packages modifications across all projects
84
+
85
+
NuGet packages used across all selected projects or their dependencies that need version update in projects that reference them.
86
+
87
+
| Package Name | Current Version | New Version | Description |
Once an upgrade plan is ready, tell Copilot to start the upgrade. Once the upgrade process starts, Copilot lets you know what it's doing in the chat window and it opens the **Upgrade Progress Details** document, which lists the status of every step. If it runs into a problem, Copilot pauses and asks for your direction or help in fixing these problems.
@@ -71,6 +106,59 @@ Each major step in the upgrade process is committed to the local Git repository.
71
106
72
107
When the upgrade completes, a report is generated that describes every step of the upgrade. The tool creates a Git commit for every portion of the upgrade process, so you can easily roll back the changes or get detailed information about what changed. The report contains the Git commit hashes and provides a _Next steps_ section that describes the steps you should take after the upgrade finishes.
73
108
109
+
The following example shows the report of a completed upgrade that contained a test failure:
110
+
111
+
```md
112
+
# .NET 9 Upgrade Report
113
+
114
+
## Project modifications
115
+
116
+
| Project name | Old Target Framework | New Target Framework | Commits |
0 commit comments