mstest.testframework breaking changes
mstest.testframework 4.0.0 (October 7, 2025) is its newest release with breaking changes, 106 of them. The first: Drops .NET Core 3.1 through .NET 7 target frameworks in MSTest.TestFramework 4.0.0. Every breaking API change we have recorded in mstest.testframework on NuGet: 120 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.5.3, released November 11, 2026. Source repository
Its 3.0.0-preview-20221110-04 release drops .NET 5. .NET end of life dates.
mstest.testframework 4.0.0 breaking changes
- Removed
The minimum supported .NET version is now .NET 8. learn.microsoft.com - Removed
ClassCleanupAttribute
ClassCleanupAttribute constructors taking ClassCleanupBehavior are removed in MSTest.TestFramework 4.0.0 learn.microsoft.com - Removed
ClassCleanupLifecycle
MSTest v4 no longer reads these settings, so they have no effect. learn.microsoft.com - Removed
DataTestMethodAttribute
DataTestMethodAttribute constructors that take a display name are removed in MSTest.TestFramework 4.0.0 learn.microsoft.com - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ReplaceNullChars
Assert.ReplaceNullChars is removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowsException
Use Assert.Throws instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowsExceptionAsync
Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowsExceptionAsync was removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute.CleanupBehavior
Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute.CleanupBehavior was removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior
ClassCleanup now runs only at the end of the test class; use AssemblyCleanup for end-of-assembly work. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupExecutionAttribute
Remove any assembly-level ClassCleanupExecution attribute from your code. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.ConditionBaseAttribute.ShouldRun
Use ConditionBaseAttribute.IsConditionMet instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.CssIterationAttribute
CssIterationAttribute is removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.CssProjectStructureAttribute
CssProjectStructureAttribute is removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.TestIdGenerationStrategy
DataRowAttribute.TestIdGenerationStrategy property is removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.UnfoldingStrategy
Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.UnfoldingStrategy was removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataAttribute.UnfoldingStrategy
Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataAttribute.UnfoldingStrategy was removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.ExpectedExceptionAttribute
Use Assert.Throws instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.ExpectedExceptionBaseAttribute
Use Assert.Throws instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.GenericParameterHelper
Microsoft.VisualStudio.TestTools.UnitTesting.GenericParameterHelper was removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.InternalTestFailureException
InternalTestFailureException is removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceUnfoldingCapability
Set UnfoldingStrategy on TestMethodAttribute instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod.Invoke
Use ITestMethod.InvokeAsync instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.ManagedMethod
Use TestContext.TestName instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.ManagedType
Use TestContext.FullyQualifiedTestClassName instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.TestDeploymentDir
Use DeploymentDirectory instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.TestDir
Use TestRunDirectory instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.TestContext.TestLogsDir
Use TestRunResultsDirectory instead. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.TestIdGenerationStrategy
Microsoft.VisualStudio.TestTools.UnitTesting.TestIdGenerationStrategy was removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.TestIdGenerationStrategyAttribute
TestIdGenerationStrategyAttribute is removed in MSTest.TestFramework 4.0.0 nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute.Execute
Custom test method attributes must override ExecuteAsync instead of Execute. nuget.org - Removed
Microsoft.VisualStudio.TestTools.UnitTesting.TestTimeout
Use int.MaxValue instead. nuget.org - Removed
TestIdGenerationStrategy
Remove any assembly-level TestIdGenerationStrategy attribute. learn.microsoft.com - Renamed
Update assembly references, binding redirects and coverage filters that use the old names. learn.microsoft.com - Renamed
TestContext.Properties.Contains
TestContext.Properties.Contains is replaced by ContainsKey in MSTest.TestFramework 4.0.0 learn.microsoft.com - Renamed
UITestMethodAttribute.Execute
Derived classes must override ExecuteAsync instead of Execute. learn.microsoft.com - Behavior changed
Add Microsoft.NET.Test.Sdk manually if you still need VSTest support. learn.microsoft.com - Behavior changed
Test runs hang when a foreground thread runs forever under AppDomain isolation in MSTest.TestFramework 4.0.0 learn.microsoft.com - Behavior changed
Fix the underlying load failure, often a missing or mismatched dependency. learn.microsoft.com - Behavior changed
Set Inherited = false on custom attributes that should not apply to overrides. learn.microsoft.com - Behavior changed
ConditionBaseAttribute.IgnoreMessage
Remove overrides and set the property instead, for example in the constructor. learn.microsoft.com - Behavior changed
ITestDataSource.GetDisplayName
Default display name for custom data sources includes data row arguments in MSTest.TestFramework 4.0.0 learn.microsoft.com - Behavior changed
TestCase.Id
Test IDs change, which can affect tools tracking failures over time. learn.microsoft.com - Behavior changed
TestContext.FullyQualifiedTestClassName
TestContext.FullyQualifiedTestClassName throws in assembly initialize in MSTest.TestFramework 4.0.0 learn.microsoft.com - Behavior changed
TestContext.TestName
TestContext.TestName throws in assembly and class initialize in MSTest.TestFramework 4.0.0 learn.microsoft.com - Default changed
Several analyzers now default to Warning severity instead of Info in MSTest.TestFramework 4.0.0 learn.microsoft.com - Default changed
DisableAppDomain
Set DisableAppDomain to false in runsettings or testconfig.json to keep AppDomain isolation. learn.microsoft.com - Default changed
TreatDiscoveryWarningsAsErrors
TreatDiscoveryWarningsAsErrors defaults to true in MSTest.TestFramework 4.0.0 learn.microsoft.com - Configuration changed
Update any tools that read the executor URI. learn.microsoft.com - Configuration changed
DisableAppDomain
Move the DisableAppDomain element under RunSettings/RunConfiguration. learn.microsoft.com - Signature changed
Assert
Use string interpolation instead of format arguments. learn.microsoft.com
And 56 more in this version. Sign up to see every change
mstest.testframework 3.0.0 breaking changes
- Signature changed
Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual
Was static void AreEqual(object expected, object actual) static void AreEqual(object expected, object actual, string message) static void AreEqual(object expected, object actual, string message, object[] parameters); now static void... nuget.org - Signature changed
Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotEqual
Was static void AreNotEqual(object notExpected, object actual) static void AreNotEqual(object notExpected, object actual, string message) static void AreNotEqual(object notExpected, object actual, string message, object[] parameters); now... nuget.org - Signature changed
Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotSame
Was static void AreNotSame(object notExpected, object actual) static void AreNotSame(object notExpected, object actual, string message) static void AreNotSame(object notExpected, object actual, string message, object[] parameters); now... nuget.org - Signature changed
Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreSame
Was static void AreSame(object expected, object actual) static void AreSame(object expected, object actual, string message) static void AreSame(object expected, object actual, string message, object[] parameters); now static void... nuget.org - Signature changed
Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.GetDisplayName
Was string GetDisplayName(System.Reflection.MethodInfo methodInfo, object[] data); now virtual string GetDisplayName(System.Reflection.MethodInfo methodInfo, object[] data). nuget.org - Signature changed
Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod.GetAttributes
Was AttributeType[] GetAttributes<AttributeType>(bool inherit); now TAttributeType[] GetAttributes<TAttributeType>(bool inherit). nuget.org
mstest.testframework 3.0.0-preview-20221110-04 breaking changes
- Removed
Support for UWP versions before 16299 was dropped. Apps targeting older UWP versions must upgrade. github.com - Removed
Support for WinUI versions before 18362 was dropped. Apps targeting older WinUI versions must upgrade. github.com - Removed
Support for .NET Standard 1.0 was dropped, with the minimum moved to 2.0. Projects targeting 1.0 must target 2.0 or later. github.com - Removed
Support for .NET Framework 4.5 was dropped, with the minimum moved to 4.6.2. Projects targeting 4.5 must retarget to 4.6.2 or later. github.com - Removed
Support for .NET 5 was dropped. Projects targeting .NET 5 must move to netcoreapp3.1 or .NET 6. github.com - Behavior changed
Test IDs are generated with a new strategy. Previous strategies can be selected again, so tests relying on old IDs may need that setting. github.com - Behavior changed
Timeout behavior is now the same on every target framework. Test timeouts may behave differently than before on some frameworks. github.com - Signature changed
DataRowAttribute
The set of DataRowAttribute constructors changed. Code calling constructors that were removed must be updated. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.