title | titleSuffix | description | ms.date | no-loc | |||
---|---|---|---|---|---|---|---|
Breaking changes in .NET 6 |
Navigate to the breaking changes in .NET 6. |
07/28/2023 |
|
If you're migrating an app to .NET 6, the breaking changes listed here might affect you. Changes are grouped by technology area, such as ASP.NET Core or Windows Forms.
[!INCLUDE binary-source-compat]
Title | Binary compatible | Source compatible |
---|---|---|
Default console logger formatting in container images | ✔️ | ❌ |
For information on other breaking changes for containers in .NET 6, see .NET 6 Container Release Notes.
Title | Binary compatible | Source compatible |
---|---|---|
CreateEncryptor methods throw exception for incorrect feedback size | ❌ | ✔️ |
Title | Binary compatible | Source compatible |
---|---|---|
x86 host path on 64-bit Windows | ✔️ | ✔️ |
Title | Binary compatible | Source compatible |
---|---|---|
AddProvider checks for non-null provider | ✔️ | ❌ |
FileConfigurationProvider.Load throws InvalidDataException | ✔️ | ❌ |
Repeated XML elements include index | ❌ | ✔️ |
Resolving disposed ServiceProvider throws exception | ✔️ | ❌ |
Title | Binary compatible | Source compatible |
---|---|---|
Culture creation and case mapping in globalization-invariant mode |
Title | Binary compatible | Source compatible |
---|---|---|
Static abstract members in interfaces | ❌ | ✔️ |
Title | Binary compatible | Source compatible |
---|---|---|
Coerce call arguments according to ECMA-335 | ✔️ | ✔️ |
Title | Binary compatible | Source compatible |
---|---|---|
Port removed from SPN for Kerberos and Negotiate | ❌ | ✔️ |
WebRequest, WebClient, and ServicePoint are obsolete | ✔️ | ❌ |
Title | Binary compatible | Source compatible |
---|---|---|
DataContractSerializer retains sign when deserializing -0 | ❌ | ✔️ |
Default serialization format for TimeSpan | ❌ | ✔️ |
IAsyncEnumerable serialization | ✔️ | ❌ |
JSON source-generation API refactoring | ❌ | ✔️ |
JsonNumberHandlingAttribute on collection properties | ❌ | ✔️ |
New JsonSerializer source generator overloads | ❌ | ✔️ |
Title | Binary compatible | Source compatible |
---|---|---|
XNodeReader.GetAttribute behavior for invalid index | ✔️ | ❌ |