Created
December 23, 2022 21:09
-
-
Save JonasNilson/14d3e707579b30edd26455687807223d to your computer and use it in GitHub Desktop.
Upgrade from .NET Framework 4.8.1 to .NET 6 (.NET Core 6)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get more information from the official sources: | |
# https://learn.microsoft.com/en-us/dotnet/desktop/winforms/migration/?view=netdesktop-6.0&preserve-view=true | |
# https://github.com/dotnet/upgrade-assistant#installation | |
PS> dotnet tool install -g --add-source https://api.nuget.org/v3/index.json --ignore-failed-sources upgrade-assistant | |
PS> upgrade-assistant upgrade <path/your-project.sln> | |
# Follow along the step-by-step process. | |
# Example output down below: | |
Upgrade Steps | |
1. [Complete] Back up project | |
2. [Complete] Convert project file to SDK style | |
3. [Complete] Clean up NuGet package references | |
a. [Complete] Duplicate reference analyzer | |
b. [Complete] Package map reference analyzer | |
c. [Complete] Target compatibility reference analyzer | |
d. [Complete] Upgrade assistant reference analyzer | |
1. [Complete] Add package 'Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers' | |
e. [Complete] Windows Compatibility Pack Analyzer | |
f. [Complete] MyDotAnalyzer reference analyzer | |
g. [Complete] Newtonsoft.Json reference analyzer | |
h. [Complete] Windows App SDK package analysis | |
i. [Complete] Transitive reference analyzer | |
4. [Complete] Update TFM | |
5. [Complete] Update NuGet Packages | |
a. [Complete] Duplicate reference analyzer | |
b. [Complete] Package map reference analyzer | |
c. [Complete] Target compatibility reference analyzer | |
d. [Complete] Upgrade assistant reference analyzer | |
e. [Complete] Windows Compatibility Pack Analyzer | |
1. [Complete] Add package 'Microsoft.Windows.Compatibility' | |
f. [Complete] MyDotAnalyzer reference analyzer | |
g. [Complete] Newtonsoft.Json reference analyzer | |
h. [Complete] Windows App SDK package analysis | |
i. [Complete] Transitive reference analyzer | |
1. [Complete] Remove package 'System.Management' | |
6. [Complete] Add template files | |
7. [Complete] Update WCF service to CoreWCF (Preview) | |
8. [Complete] Update Windows Desktop Project | |
a. [Complete] Default Font API Alert | |
b. [Complete] Winforms Source Updater | |
9. [Complete] Upgrade app config files | |
a. [Complete] Convert Application Settings | |
b. [Complete] Convert Connection Strings | |
c. [Complete] Disable unsupported configuration sections | |
10. [Complete] Update source code | |
a. [Complete] Apply fix for UA0002: Types should be upgraded | |
b. [Complete] Apply fix for UA0012: 'UnsafeDeserialize()' does not exist | |
11. [Next step] Move to next project | |
Choose a command: | |
1. Apply next step (Move to next project) | |
2. Skip next step (Move to next project) | |
3. See more step details | |
4. Configure logging | |
5. Exit | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment