惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Heimdal Security Blog
P
Privacy International News Feed
S
Schneier on Security
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
Spread Privacy
Spread Privacy
P
Privacy & Cybersecurity Law Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Scott Helme
Scott Helme
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
aimingoo的专栏
aimingoo的专栏
Simon Willison's Weblog
Simon Willison's Weblog
S
Securelist
Help Net Security
Help Net Security
B
Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Security Archives - TechRepublic
Security Archives - TechRepublic
云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
N
News and Events Feed by Topic
Hacker News: Ask HN
Hacker News: Ask HN
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
雷峰网
雷峰网
博客园 - 司徒正美
V
V2EX
AWS News Blog
AWS News Blog
Know Your Adversary
Know Your Adversary
N
News | PayPal Newsroom
T
Tor Project blog
Cisco Talos Blog
Cisco Talos Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
PCI Perspectives
PCI Perspectives
Google DeepMind News
Google DeepMind News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
U
Unit 42
C
Cybersecurity and Infrastructure Security Agency CISA
P
Palo Alto Networks Blog
G
Google Developers Blog
T
Threat Research - Cisco Blogs
博客园 - Franky
I
InfoQ
D
DataBreaches.Net
爱范儿
爱范儿
Y
Y Combinator Blog
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

.NET Blog

.NET and .NET Framework July 2026 servicing releases updates - .NET Blog CoreCLR Progress and the Mono Timeline for .NET MAUI - .NET Blog .NET 11 Preview 6 is now available! - .NET Blog Modernize .NET applications in the GitHub Copilot app - .NET Blog MCP Beyond the Chat Window: Build Diagnostics in CI - .NET Blog .NET 8 and .NET 9 will reach End of Support on November 10, 2026 - .NET Blog SkiaSharp 4.0 is here: announcing the first stable release - .NET Blog Packaging and Package Identity for .NET apps with WinApp CLI on Windows - .NET Blog AI-Powered MSBuild Investigation with the Microsoft Binlog MCP Server - .NET Blog Join us for .NET Day on Agentic Modernization Livestream .NET 11 Preview 5 is now available! .NET and .NET Framework June 2026 servicing releases updates .NET at Microsoft Build 2026: Must watch sessions Doing More with GitHub Copilot as a .NET Developer Give Your .NET MAUI Android Apps a Material 3 Makeover Announcing Agent Governance Toolkit MCP Extensions for .NET Improving C# Memory Safety NuGet Package Pruning: Cleaner Dependencies and Actionable Vulnerability Reports Process API Improvements in .NET 11 .NET MAUI Moves to CoreCLR in .NET 11 .NET 11 Preview 4 is now available! .NET and .NET Framework May 2026 servicing releases updates Copilot Studio gets faster with .NET 10 on WebAssembly - .NET Blog Durable Workflows in the Microsoft Agent Framework Microsoft Agent Framework – Building Blocks for AI Part 3 Building an AI-Powered Conference App with .NET’s Composable AI Stack Governing MCP tool calls in .NET with the Agent Governance Toolkit Welcome to SkiaSharp 4.0 Preview 1 High-Performance Distributed Caching with .NET and Postgres on Azure Combining API versioning with OpenAPI in .NET 10 applications What’s new for .NET in Ubuntu 26.04 .NET 10.0.7 Out-of-Band Security Update Writing Node.js addons with .NET Native AOT Pin Clustering in .NET MAUI Maps .NET and .NET Framework April 2026 servicing releases updates .NET 11 Preview 3 is now available! Your Migration’s Source of Truth: The Modernization Assessment ASP.NET Core 2.3 end of support announcement Explore union types in C# 15 Generative AI for Beginners .NET: Version 2 on .NET 10 Ten Months with Copilot Coding Agent in dotnet/runtime Accelerating .NET MAUI Development with AI Agents RT.Assistant: A Multi-Agent Voice Bot Using .NET and OpenAI Modernize .NET Anywhere with GitHub Copilot .NET 10.0.5 Out-of-Band Release – macOS Debugger Fix .NET 11 Preview 2 is now available!
VSTest is Removing its Newtonsoft.Json Dependency
McKenna Barl · 2026-04-30 · via .NET Blog

Starting in .NET 11 Preview 4 and Visual Studio 18.8, VSTest, the platform that powers dotnet test and Test Explorer, will no longer depend on Newtonsoft.Json. The platform will now use System.Text.Json on .NET and JSONite on .NET Framework.

This is a servicing and security change. Most projects require no action. A small number of projects will see an obvious build or test failure and can resolve it with a one line PackageReference.

Why this change?

VSTest has shipped Newtonsoft.Json as part of the .NET SDK and Visual Studio for years. All versions of Newtonsoft.Json below 13.0.0 are now marked vulnerable on NuGet.org, and carrying the dependency exposes the test platform to future advisories in a component it no longer needs. Removing it is part of the broader effort to remove Newtonsoft.Json from the .NET SDK.

What is not changing?

  • The VSTest wire format is unchanged. Messages serialize identically whether Newtonsoft.Json, System.Text.Json, or JSONite is used.
  • Older testhosts remain compatible with the updated platform, and vice versa.
  • Serialization performance is the same or better.

Who is not affected?

Most test projects fall into this bucket:

  • Projects that do not use Newtonsoft.Json.
  • Projects that reference Newtonsoft.Json as a normal PackageReference.
  • xUnit and NUnit projects running on .NET, or using AppDomains. These already required an explicit reference.

Who is affected, and how to fix it

Every failure below is non-silent, is reported in the test run, and flows into TRX and the Azure DevOps / GitHub test views.

Build error: missing Newtonsoft.Json reference

If a test project uses Newtonsoft.Json types (for example JObject, JsonConvert) without referencing the package, it previously compiled only because Newtonsoft.Json leaked through VSTest. After the update it will not.

Fix: add the package.

<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

Runtime error: FileNotFoundException for Newtonsoft.Json

Projects that reference Newtonsoft.Json but exclude the runtime asset — for example:

<PackageReference Include="Newtonsoft.Json" Version="13.0.3">
  <ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>

relied on VSTest’s copy being present at test time. After the update the test run will fail with:

System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.

Fix: remove <ExcludeAssets>runtime</ExcludeAssets>, or install Newtonsoft.Json without excluding runtime assets.

Extension load error in a test adapter or data collector

Adapters and data collectors that used Newtonsoft.Json without declaring it as a dependency will fail at load time with a message such as:

Data collector 'SampleDataCollector' threw an exception during type loading, construction, or initialization: System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.

The message names the exact extension that needs to be updated, however we are not aware of any shipping adapter or collector that hits this today. Extension authors should add Newtonsoft.Json (or migrate off it) in their own package; consumers can add Newtonsoft.Json to the test project, or disable the affected extension until it is updated.

Public API change

VSTest exposed Newtonsoft.Json.Linq.JToken in one spot of its communication API. That type is being removed from the public surface. It was only meaningful to code participating in the VSTest protocol and is unlikely to have real world consumers, but extension authors should be aware.

When you will see this

Release Date
.NET 11 preview 4 May 12th, 2026
Visual Studio 18.8 Insiders 1 June 9, 2026

Try it early

Preview packages are available on NuGet as Microsoft.TestPlatform.* version 1.0.0-alpha-stj. Details and discussion: microsoft/vstest#15677. Source PR: microsoft/vstest#15540. SDK breaking change tracking: dotnet/docs#53174.

If your build or test run fails after updating with an error mentioning Newtonsoft.Json, the fix is almost always a single PackageReference. For anything not covered above, please open an issue on microsoft/vstest.

Author

McKenna Barlow

Product Manager 2

PM on the .NET Tools Team