How to migrate a Windows Forms desktop app to .NET 5
.NET 6.x
NET 6 Desktop Dev Options:
WPF, WinForms, UWP, .NET MAUI, Win UI, Blazor, Project Reunion
.NET 6 installation instructions for Windows 10
output
下列项安装于: "C:\Program Files\dotnet"
• .NET SDK 6.0.100-rc.2.21505.57
• .NET Runtime 6.0.0-rc.2.21480.5
• ASP.NET Core Runtime 6.0.0-rc.2.21480.10
• .NET Windows Desktop Runtime 6.0.0-rc.2.21501.6
or
C:\>curl -Lo dotnet.zip https://download.visualstudio.microsoft.com/download/pr/5bc3c525-d6d5-4370-8468-e44a1b948c03/fe758c9942966b88b52d92ce2823f6c0/dotnet-sdk-6.0.100-rc.2.21505.57-win-x64.exe
C:\>tar -C dotnet -xf dotnet.zip
C:\>del dotnet.zip
C:\>set DOTNET_ROOT=C:\dotnet
C:\>set PATH=%PATH%;C:\dotnet
C:\>dotnet --version
6.0.100-rc.2.21505.57
detail:https://github.com/dotnet/core/blob/main/release-notes/6.0/install-windows.md
.Net 5.x
WinForms
从 .NET Core 3.1 开始,某些 Windows 窗体控件不再可用.
detail:https://docs.microsoft.com/zh-cn/dotnet/core/compatibility/winforms