Migrate to .NET 10
ProprietaryMigrate C# projects to .NET 10, applying necessary API changes. Includes all .NET 9 (and earlier) migration steps. See https://learn.microsoft.com/en-us/dotnet/core/compatibility/10.0.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. UpgradeToDotNet10mod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. UpgradeToDotNet10Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Migrate to .NET 9
- Change .NET target framework
- Change .NET target framework
- Upgrade NuGet package version
- Upgrade NuGet package version
- Upgrade NuGet package version
- Upgrade NuGet package version
- Upgrade NuGet package version
- Upgrade NuGet package version
- Ensure csproj attestation
- Rename MLDsa/SlhDsa
SecretKeymembers toPrivateKey - Rename
Form.OnClosing/OnClosedtoOnFormClosing/OnFormClosed(WFDEV004) - Rename
orientparameter toorientationinHtmlElement.InsertAdjacentElement - Rename
KnownNetworkstoKnownIPNetworks(ASPDEPR005) - Remove obsolete
AddRazorRuntimeCompilationcalls (ASPDEPR003) - Remove deprecated
WithOpenApicalls (ASPDEPR002) - Find obsolete
IActionContextAccessor/ActionContextAccessor(ASPDEPR006) - Find
ActivitySamplingResult.PropagationDatabehavior change - Find
BackgroundService.ExecuteAsyncbehavior change - Find
BufferedStream.WriteByteimplicit flush behavior change - Find
DistributedContextPropagatordefault propagator change - Find
DllImportSearchPath.AssemblyDirectorybehavior change - Find
DriveInfo.DriveFormatbehavior change - Find
GnuTarEntry/PaxTarEntrydefault timestamp change - Find obsolete
IPNetwork/KnownNetworks(ASPDEPR005) - Find
KeyedService.AnyKeybehavior change - Find
Type.MakeGenericSignatureTypevalidation change - Find obsolete
Queryable.MaxBy/MinBywithIComparer<TSource>(SYSLIB0061) - Find obsolete
AddRazorRuntimeCompilationcalls (ASPDEPR003) - Find obsolete
Rfc2898DeriveBytesconstructors (SYSLIB0060) - Find obsolete
SslStreamcipher properties (SYSLIB0058) - Find
catch (OutOfMemoryException)that may needExternalException - Find obsolete
SystemEvents.EventsThreadShutdown(SYSLIB0059) - Find obsolete
WebHostBuilder/IWebHost/WebHostusage (ASPDEPR004/ASPDEPR008) - Find obsolete Windows Forms APIs (WFDEV004/005/006)
- Find deprecated
WithOpenApicalls (ASPDEPR002) - Find
X500DistinguishedNamestring constructor stricter validation - Find obsolete
XsltSettings.EnableScript(SYSLIB0062) - Find obsolete SSL authentication enum types
- Find obsolete
Form.OnClosing/OnClosedusage (WFDEV004) - Find obsolete
Clipboard.GetDatacalls (WFDEV005)