© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4mo ago•
31 replies
Core

✅ dotnet test: Testing with VSTest target is no longer supported by Microsoft.Testing.Platform

Running
dotnet test
dotnet test
produces the following error:
Testing with VSTest target is no longer supported by Microsoft.Testing.Platform on .NET 10 SDK and later. If you use dotnet test, you should opt-in to the new dotnet test experience. For more information, see https://aka.ms/dotnet-test-mtp-error
Testing with VSTest target is no longer supported by Microsoft.Testing.Platform on .NET 10 SDK and later. If you use dotnet test, you should opt-in to the new dotnet test experience. For more information, see https://aka.ms/dotnet-test-mtp-error

I am using TUnit, and it is constructed on top of
Microsoft.Testing.Platform
Microsoft.Testing.Platform
, any idea what might be going on?

I checked the link, and
gloabl.json
gloabl.json
includes the necessary config
{
  "sdk": {
    "allowPrerelease": true
  },
  "test": {
    "runner": "Microsoft.Testing.Platform"
  }
}
{
  "sdk": {
    "allowPrerelease": true
  },
  "test": {
    "runner": "Microsoft.Testing.Platform"
  }
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ dotnet.microsoft.com is down
C#CC# / help
2y ago
dotnet 8 windows target
C#CC# / help
3y ago
CLI DotNet Testing??
C#CC# / help
4mo ago
❔ Jenkins Pipeline with dotnet test
C#CC# / help
4y ago