Skip to content
July 5, 2026
  • AI & Copilot
  • Azure Cloud
  • How To Guides
  • Microsoft 365 Office
  • Windows
  • XBOX
  • Privacy Policy

Microsoft News Now

The Home of Microsoft News Today

Primary Menu
  • AI & Copilot
  • Azure Cloud
  • How To Guides
  • Microsoft 365 Office
  • Windows
  • XBOX
  • Privacy Policy
Light/Dark Button
Subscribe

Home - News - Now obsolete, BinaryFormatter getting removed in upcoming .NET 9 release

  • News

Now obsolete, BinaryFormatter getting removed in upcoming .NET 9 release

A significant change in the .NET ecosystem was announced: the BinaryFormatter serialization method will be removed in an upcoming.NET release. This decision, detailed in a recent GitHub issue post, marks the culmination of a phased obsoletion strategy aimed at enhancing security within .NET applications.
Dave W. Shanahan 2 years ago (Last updated: 1 year ago) 2 minutes read
binaryformatter

A significant change in the .NET ecosystem was announced: the BinaryFormatter serialization method will be removed in an upcoming .NET 9 release. This decision, detailed in a recent GitHub issue post, marks the culmination of a phased obsoletion strategy aimed at enhancing security within applications.

BinaryFormatter

binaryformatter

BinaryFormatter has been part of .NET since its early days, providing a method for serializing and deserializing objects. However, it has long been criticized for its security vulnerabilities, prompting Microsoft to advise developers to seek alternative serialization methods.

Developers targeting older .NET Framework versions, such as 2.x, 4.x, or .NET Core 3.1, will not be affected by this change, as BinaryFormatter will continue to function as expected in these applications. Nevertheless, the move to remove BinaryFormatter is a clear signal that Microsoft is prioritizing security and modern development practices.

RIP BinaryFormatter in .NET 9. Barry's finally getting his wish 😂. For as much as I joke about it, the removal from the runtime truly is for a good cause. https://t.co/TroCmlQL2q

— Jeremy Sinclair #ฺNET (@sinclairinat0r) February 9, 2024

The removal of BinaryFormatter aligns with Microsoft’s broader efforts to guide developers toward safer and more secure coding practices. As the .NET community prepares for this transition, developers are encouraged to evaluate their applications’ backward compatibility needs and explore alternative serialization options that offer better security and performance.

Microsoft advises using alternatives, as many other in-box serializers can handle untrusted data safely. These options include:

  • XmlSerializer and DataContractSerializer to serialize object graphs into and from XML. Try not to confuse DataContractSerializer with NetDataContractSerializer.
  • BinaryReader and BinaryWriter for XML and JSON.
  • The System.Text.Json APIs to serialize object graphs into JSON.

This change is expected to have a significant impact on the .NET development landscape, and Microsoft is likely to provide further guidance and tools to assist developers in migrating away from BinaryFormatter. As the .NET platform continues to evolve, staying informed and adaptable will be crucial for developers looking to maintain and modernize their applications.

Related Posts

  1. Here are the epic .NET (dotnet) announcements made at Microsoft Build 2024, including .NET Aspire, AI, and more
  2. Microsoft Launches preview of Arm-based Azure VMs featuring new, efficient Cobalt 100 processor
  3. New Microsoft PowerToys update to v0.81 brings Advanced Paste, bug fixes, and coming sometime soon to Dev Home
  4. NVIDIA GeForce NOW brings Black Myth: Wukong and FINAL FANTASY XVI (16) demo to the cloud
  5. The always entertaining CES 2024 starts in Las Vegas, and other TLDR stories from MSFT News Now

About The Author

BinaryFormatter

Dave W. Shanahan

I’m Dave W. Shanahan, a Microsoft enthusiast with a passion for Windows, Xbox, Microsoft 365 Copilot, Azure, and more. I started MSFTNewsNow.com to keep the world updated on Microsoft news. Based in Massachusetts, you can email me at davewshanahan@gmail.com.

See author's posts

Like this:

LikeLoading…

Related


Discover more from Microsoft News Now

Subscribe to get the latest posts sent to your email.

Tags: AzureDeveloperGitHubMicrosoftMicrosoft Build 2024NVIDIAPowerToysSecurityTwitter

Post navigation

Previous: Windows 11’s Snipping Tool and Notepad get a creative overhaul, Insider Preview unveils new markup and AI features
Next: How to turn off Microsoft Copilot efficiently on Windows 11

Related Stories

Next Week on XBOX: Ultimate Assassin’s Creed Black Flag Resynced, College Football 27, Palworld 1.0, and More for an Exciting Week July 6–10
  • News
  • XBOX and Gaming

Next Week on XBOX: Ultimate Assassin’s Creed Black Flag Resynced, College Football 27, Palworld 1.0, and More for an Exciting Week July 6–10

Dave W. Shanahan 2 days ago 0
XBOX Free Play Days: Call of Duty Black Ops 7, Diablo IV, Ikonei Island, and More Go Free This Week
  • News
  • XBOX and Gaming

XBOX Free Play Days: Call of Duty Black Ops 7, Diablo IV, Ikonei Island, and More Go Free This Week

Dave W. Shanahan 3 days ago 0
Microsoft Frontier Company: Microsoft's $2.5B Bet On Trusted Enterprise AI Transformation
  • News
  • Enterprise

Microsoft Frontier Company: Microsoft’s Big $2.5B Bet On Trusted Enterprise AI Transformation

Dave W. Shanahan 3 days ago 0

AccessibilityAmazonAndroidAuthenticationAzureCall of DutyCopilotCybersecurityDeveloperEnterpriseFree Play DaysGamingGenerative AIGitHubGoogleLinkedinMicrosoftMicrosoft 365Microsoft 365 CopilotMicrosoft CopilotMicrosoft EdgeMicrosoft StoreMicrosoft TeamsNext Week on XBOXOpenAIOutlookPatch TuesdayPrivacySecuritySettingsSharePointSurfaceTwitterWindowsWindows 10Windows 11Windows InsiderXBOXXBOX Game PassXBOX Game Pass UltimateXBOX OneXBOX Play AnywhereXBOX Series XXBOX Series X|SXBOX Wire

Useful Links

  • AI and Copilot (249)
  • Azure & Cloud (35)
  • Developers (3)
  • Enterprise (4)
  • How To Guides (99)
  • Microsoft 365/Office (97)
  • Microsoft Announcements (97)
  • News (1,272)
  • Security (78)
  • Surface (47)
  • Windows (168)
  • XBOX and Gaming (418)

You May Have Missed

Next Week on XBOX: Ultimate Assassin’s Creed Black Flag Resynced, College Football 27, Palworld 1.0, and More for an Exciting Week July 6–10
  • News
  • XBOX and Gaming

Next Week on XBOX: Ultimate Assassin’s Creed Black Flag Resynced, College Football 27, Palworld 1.0, and More for an Exciting Week July 6–10

Dave W. Shanahan 2 days ago 0
XBOX Free Play Days: Call of Duty Black Ops 7, Diablo IV, Ikonei Island, and More Go Free This Week
  • News
  • XBOX and Gaming

XBOX Free Play Days: Call of Duty Black Ops 7, Diablo IV, Ikonei Island, and More Go Free This Week

Dave W. Shanahan 3 days ago 0
Microsoft Frontier Company: Microsoft's $2.5B Bet On Trusted Enterprise AI Transformation
  • News
  • Enterprise

Microsoft Frontier Company: Microsoft’s Big $2.5B Bet On Trusted Enterprise AI Transformation

Dave W. Shanahan 3 days ago 0
Microsoft Teams Rolls Out Smarter Bot Protection To Keep Unwanted AI Out Of Your Meetings
  • News
  • Microsoft 365/Office

Smarter Microsoft Teams Bot Protection Rolls Out To Keep Unwanted AI Out Of Your Meetings

Dave W. Shanahan 4 days ago 0
  • AI & Copilot
  • Azure Cloud
  • How To Guides
  • Microsoft 365 Office
  • Windows
  • XBOX
  • Privacy Policy
Copyright © 2026 All rights reserved. ReviewNews by AF themes.

    %d