Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BinaryFormatter disabled & obsoletion of legacy serialization APIs #35217

Merged
merged 16 commits into from
May 16, 2023
15 changes: 15 additions & 0 deletions .openpublishing.redirection.core.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@
"source_path_from_root": "/docs/core/compatibility/core-libraries/7.0/filesystemeventargs-fullpath.md",
"redirect_url": "/dotnet/core/compatibility/7.0"
},
{
"source_path_from_root": "/docs/core/compatibility/core-libraries/5.0/binaryformatter-serialization-obsolete.md",
"redirect_url": "/dotnet/core/compatibility/serialization/5.0/binaryformatter-serialization-obsolete",
"redirect_document_id": true
},
{
"source_path_from_root": "/docs/core/compatibility/core-libraries/7.0/binaryformatter-apis-produce-errors.md",
"redirect_url": "/dotnet/core/compatibility/serialization/7.0/binaryformatter-apis-produce-errors",
"redirect_document_id": true
},
{
"source_path_from_root": "/docs/core/compatibility/core-libraries/7.0/serializationformat-binary.md",
"redirect_url": "/dotnet/core/compatibility/serialization/7.0/serializationformat-binary",
"redirect_document_id": true
},
{
"source_path_from_root": "/docs/core/compatibility/extensions/6.0/bind-single-elements-to-array.md",
"redirect_url": "/dotnet/core/compatibility/6.0"
Expand Down
4 changes: 2 additions & 2 deletions docs/core/compatibility/5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you're migrating an app to .NET 5, the breaking changes listed here might aff
| - | - | - |
| [ASP.NET Core apps deserialize quoted numbers](serialization/5.0/jsonserializer-allows-reading-numbers-as-strings.md) | ✔️ | ❌ |
| [AzureAD.UI and AzureADB2C.UI APIs obsolete](aspnet-core/5.0/authentication-aad-packages-obsolete.md) | ✔️ | ❌ |
| [BinaryFormatter serialization methods are obsolete](core-libraries/5.0/binaryformatter-serialization-obsolete.md) | ✔️ | ❌ |
| [BinaryFormatter serialization methods are obsolete](serialization/5.0/binaryformatter-serialization-obsolete.md) | ✔️ | ❌ |
| [Resource in endpoint routing is HttpContext](aspnet-core/5.0/authorization-resource-in-endpoint-routing.md) | ✔️ | ❌ |
| [Microsoft-prefixed Azure integration packages removed](aspnet-core/5.0/azure-integration-packages-removed.md) | ❌ | ✔️ |
| [Blazor: Route precedence logic changed in Blazor apps](aspnet-core/5.0/blazor-routing-logic-changed.md) | ✔️ | ❌ |
Expand Down Expand Up @@ -68,7 +68,7 @@ If you're migrating an app to .NET 5, the breaking changes listed here might aff
| Title | Binary compatible | Source compatible |
| - | - | - |
| [Assembly-related API changes for single-file publishing](core-libraries/5.0/assembly-api-behavior-changes-for-single-file-publish.md) | ❌ | ✔️ |
| [BinaryFormatter serialization methods are obsolete](core-libraries/5.0/binaryformatter-serialization-obsolete.md) | ✔️ | ❌ |
| [BinaryFormatter serialization methods are obsolete](serialization/5.0/binaryformatter-serialization-obsolete.md) | ✔️ | ❌ |
| [Code access security APIs are obsolete](core-libraries/5.0/code-access-security-apis-obsolete.md) | ✔️ | ❌ |
| [CreateCounterSetInstance throws InvalidOperationException](core-libraries/5.0/createcountersetinstance-throws-invalidoperation.md) | ✔️ | ❌ |
| [Default ActivityIdFormat is W3C](core-libraries/5.0/default-activityidformat-changed.md) | ❌ | ✔️ |
Expand Down
4 changes: 2 additions & 2 deletions docs/core/compatibility/7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ If you're migrating an app to .NET 7, the breaking changes listed here might aff
| - | :-: | :-: | - |
| [API obsoletions with default diagnostic ID](core-libraries/7.0/obsolete-apis-with-default-diagnostic.md) | ✔️ | ❌ | Preview 3 |
| [API obsoletions with non-default diagnostic IDs](core-libraries/7.0/obsolete-apis-with-custom-diagnostics.md) | ✔️ | ❌ | Preview 1 |
| [BinaryFormatter serialization APIs produce compiler errors](core-libraries/7.0/binaryformatter-apis-produce-errors.md) | ✔️ | ❌ | RC 1 |
| [BinaryFormatter serialization APIs produce compiler errors](serialization/7.0/binaryformatter-apis-produce-errors.md) | ✔️ | ❌ | RC 1 |
| [BrotliStream no longer allows undefined CompressionLevel values](core-libraries/7.0/brotlistream-ctor.md) | ❌ | ✔️ | |
| [C++/CLI projects in Visual Studio](core-libraries/7.0/cpluspluscli-compiler-version.md) | ✔️ | ❌ | Preview 3 |
| [Changes to reflection invoke API exceptions](core-libraries/7.0/reflection-invoke-exceptions.md) | ❌ | ✔️ | Preview 4 |
Expand All @@ -48,7 +48,7 @@ If you're migrating an app to .NET 7, the breaking changes listed here might aff
| [Legacy FileStream strategy removed](core-libraries/7.0/filestream-compat-switch.md) | ❌ | ✔️ | Preview 1 |
| [Library support for older frameworks](core-libraries/7.0/old-framework-support.md) | ❌ | ❌ | Preview 1 |
| [Maximum precision for numeric format strings](core-libraries/7.0/max-precision-numeric-format-strings.md) | ❌ | ✔️ | RC 1 |
| [SerializationFormat.Binary is obsolete](core-libraries/7.0/serializationformat-binary.md) | ❌ | ❌ | Preview 2 |
| [SerializationFormat.Binary is obsolete](serialization/7.0/serializationformat-binary.md) | ❌ | ❌ | Preview 2 |
| [System.Runtime.CompilerServices.Unsafe NuGet package](core-libraries/7.0/unsafe-package.md) | ✔️ | ✔️ | Preview 3 |
| [Time fields on symbolic links](core-libraries/7.0/symbolic-link-timestamps.md) | ❌ | ✔️ | Preview 1 |
| [Tracking linked cache entries](core-libraries/7.0/memorycache-tracking.md) | ❌ | ✔️ | Preview 1 |
Expand Down
9 changes: 8 additions & 1 deletion docs/core/compatibility/8.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Breaking changes in .NET 8
titleSuffix: ""
description: Navigate to the breaking changes in .NET 8.
ms.date: 01/24/2023
ms.date: 05/05/2023
no-loc: [Blazor, Razor, Kestrel]
---
# Breaking changes in .NET 8
Expand All @@ -21,6 +21,7 @@ If you're migrating an app to .NET 8, the breaking changes listed here might aff
| ----------------------------------------------------------------------------------------------------- | ------------------- | ---------- |
| [Activity operation name when null](core-libraries/8.0/activity-operation-name.md) | Behavioral change | Preview 1 |
| [AnonymousPipeServerStream.Dispose behavior](core-libraries/8.0/anonymouspipeserverstream-dispose.md) | Behavioral change | Preview 1 |
| [API obsoletions with custom diagnostic IDs](core-libraries/8.0/obsolete-apis-with-custom-diagnostics.md) | Source incompatible | Preview 1, 4 |
| [Backslash mapping in Unix file paths](core-libraries/8.0/file-path-backslash.md) | Behavioral change | Preview 1 |
| [FileStream writes when pipe is closed](core-libraries/8.0/filestream-disposed-pipe.md) | Behavioral change | Preview 1 |
| [GetFolderPath behavior on Unix](core-libraries/8.0/getfolderpath-unix.md) | Behavioral change | Preview 1 |
Expand Down Expand Up @@ -64,6 +65,12 @@ If you're migrating an app to .NET 8, the breaking changes listed here might aff
| ['dotnet pack' uses Release configuration](sdk/8.0/dotnet-pack-config.md) | Behavioral change/Source incompatible | Preview 1 |
| ['dotnet publish' uses Release configuration](sdk/8.0/dotnet-publish-config.md) | Behavioral change/Source incompatible | Preview 1 |

## Serialization

| Title | Type of change | Introduced |
| ------------------------------------------------------------------------------- | ------------------------------------------------ | ---------- |
| [BinaryFormatter disabled for most projects](serialization/8.0/binaryformatter-disabled.md) | Behavioral change | Preview 4 |

## Windows Forms

| Title | Type of change | Introduced |
Expand Down
Loading