Skip to content
July 26, 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 February 10, 2024 (Last updated: May 6, 2025) 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:

Like Loading…

Related


Discover more from Microsoft News Now

Subscribe to get the latest posts sent to your email.

Tags: Azure Developer GitHub Microsoft Microsoft Build 2024 NVIDIA PowerToys Security Twitter

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

e1c3c690-5e12-49cf-aa8d-c5aa8ae529f1
  • News
  • XBOX and Gaming

Next Week on XBOX Packs July 27 to 31 With Halo: Campaign Evolved, Dispatch, and Dozens More Releases

Dave W. Shanahan July 24, 2026 0
Microsoft Backs Open Weight AI as U.S. Tech Giants Push for American AI Leadership
  • News
  • AI and Copilot

Microsoft Backs Open Weight AI as U.S. Tech Giants Push for American AI Leadership

Dave W. Shanahan July 24, 2026 0
XBOX Insiders Test Promising New Ad-Supported Game Streaming For 1-Hour Sessions
  • News
  • XBOX and Gaming

XBOX Insiders Test Promising New Ad-Supported Game Streaming For 1-Hour Sessions

Dave W. Shanahan July 23, 2026 0

Accessibility Amazon Android Authentication Azure Call of Duty Copilot Cybersecurity Developer Enterprise Free Play Days Gaming Generative AI GitHub Google Linkedin Microsoft Microsoft 365 Microsoft 365 Copilot Microsoft Copilot Microsoft Edge Microsoft Store Microsoft Teams Next Week on XBOX OpenAI Outlook Patch Tuesday Privacy Security Settings SharePoint Surface Twitter Windows Windows 10 Windows 11 Windows Insider XBOX XBOX Game Pass XBOX Game Pass Ultimate XBOX One XBOX Play Anywhere XBOX Series X XBOX Series X|S XBOX Wire

Useful Links

  • AI and Copilot (250)
  • Azure & Cloud (35)
  • Developers (3)
  • Enterprise (4)
  • How To Guides (99)
  • Microsoft 365/Office (98)
  • Microsoft Announcements (97)
  • News (1,287)
  • Security (78)
  • Surface (47)
  • Windows (169)
  • XBOX and Gaming (428)

You May Have Missed

e1c3c690-5e12-49cf-aa8d-c5aa8ae529f1
  • News
  • XBOX and Gaming

Next Week on XBOX Packs July 27 to 31 With Halo: Campaign Evolved, Dispatch, and Dozens More Releases

Dave W. Shanahan July 24, 2026 0
Microsoft Backs Open Weight AI as U.S. Tech Giants Push for American AI Leadership
  • News
  • AI and Copilot

Microsoft Backs Open Weight AI as U.S. Tech Giants Push for American AI Leadership

Dave W. Shanahan July 24, 2026 0
XBOX Insiders Test Promising New Ad-Supported Game Streaming For 1-Hour Sessions
  • News
  • XBOX and Gaming

XBOX Insiders Test Promising New Ad-Supported Game Streaming For 1-Hour Sessions

Dave W. Shanahan July 23, 2026 0
XBOX Free Play Days Adds Weekend Access to For Honor, BLEACH Rebirth of Souls, and Metal Gear Solid – Master Collection Version
  • News
  • XBOX and Gaming

XBOX Free Play Days Adds Weekend Access to 5 Games Including For Honor, Metal Gear Solid – Master Collection Version, and More

Dave W. Shanahan July 23, 2026 0
Copyright © 2026 All rights reserved. ReviewNews by AF themes.

    %d