MSTest.TestAdapter 4.5.3
MSTest.TestAdapter
MSTest is Microsoft supported Test Framework.
This package includes the adapter logic to discover and run tests. For access to the testing framework, install the MSTest.TestFramework package.
Getting started
After referencing both MSTest.TestAdapter and MSTest.TestFramework, define tests with [TestClass] and [TestMethod]:
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class CalculatorTests
{
[TestMethod]
public void AddReturnsExpectedResult()
=> Assert.AreEqual(4, 2 + 2);
}
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9+
Classic UWP dependencies
The classic UWP adapter payload contains the adapter and its platform-services assembly. Microsoft.Testing.Platform and its extensions are restored from their own NuGet packages rather than duplicated inside this package. The classic UWP bootstrap also depends on the TRX reporting and Retry packages. The adapter's build targets include the resolved runtime assemblies in the AppX deployment.
Runsettings on Microsoft.Testing.Platform
When using the MSTest runner on Microsoft.Testing.Platform, .runsettings files can
configure MSTest through the MSTest section (or its MSTestV2 alias), test parameters
through TestRunParameters, and supported settings through RunConfiguration.
VSTest ISettingsProvider extensions are not invoked. Other top-level sections, such
as Playwright, produce a warning and are not applied by MSTest. Use the extension's
native Microsoft.Testing.Platform configuration when available. VSTest loggers,
data collectors, and unsupported RunConfiguration entries retain their own warnings.
Result file attachments
When running on Microsoft.Testing.Platform, TestContext.AddResultFile registers
an existing file as a test attachment. MSTest preserves successfully copied
attachments in visible MSTest-<random-id> folders under the configured results
directory so the published paths remain readable after the test host exits.
Original files are not moved or deleted by this copying step.
These copies are final test results: apply your results-directory retention policy to remove them when they are no longer needed. TRX reporting can create an additional copy in its own attachment layout; follow the report's references rather than selecting a file by name from the entire results directory. Retry tooling can also publish additional copies from the final attempt. If an attachment cannot be copied, MSTest reports its original path so consumers can surface their usual missing-file or copy-failure diagnostics.
Documentation
For installation and configuration guidance, see https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-getting-started.
For information about running tests, see https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-running-tests.
Showing the top 20 packages that depend on MSTest.TestAdapter.
| Packages | Downloads |
|---|---|
|
MSTest
A meta package to simplify test projects.
Supported platforms:
- .NET 4.5.0+
- .NET Core 1.0+ (Universal Windows Apps 10+) (Visual Studio 2017)
- .NET 5.0 (Visual Studio 2019)
- .NET 5.0 Windows.18362+ (WinUI Desktop Apps) (Visual Studio 2019)
- ASP.NET Core 1.0+ (Visual Studio 2017)
|
17 |
|
MSTest
A meta package to simplify test projects.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+ (Universal Windows Apps 10+)
- .NET 6.0
- .NET 6.0 Windows.18362+
- ASP.NET Core 1.0+
|
16 |
|
MSTest
A meta package to simplify test projects.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+ (Universal Windows Apps 10+)
- .NET 6.0
- .NET 6.0 Windows.18362+
- ASP.NET Core 1.0+
|
15 |
|
MSTest
A meta package to simplify test projects.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+ (Universal Windows Apps 10+)
- .NET 5.0
- .NET 5.0 Windows.18362+
- ASP.NET Core 1.0+
|
14 |
|
MSTest
A meta package to simplify test projects.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+ (Universal Windows Apps 10+)
- .NET 6.0
- .NET 6.0 Windows.18362+
- ASP.NET Core 1.0+
|
14 |
|
MSTest
MSTest is Microsoft supported Test Framework.
This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+
- .NET 6.0
- .NET 6.0 Windows.18362+
- UWP 10.0.16299
|
13 |
|
MSTest
A meta package to simplify test projects.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+ (Universal Windows Apps 10+)
- .NET 6.0
- .NET 6.0 Windows.18362+
- ASP.NET Core 1.0+
|
13 |
|
MSTest
MSTest is Microsoft supported Test Framework.
This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter.
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9+
|
11 |
|
MSTest
A meta package to simplify test projects.
Supported platforms:
- .NET 4.6.2+
- .NET Core 3.1+ (Universal Windows Apps 10+)
- .NET 6.0
- .NET 6.0 Windows.18362+
- ASP.NET Core 1.0+
|
10 |
|
MSTest
MSTest is Microsoft supported Test Framework.
This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter.
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9+
|
10 |
|
MSTest
MSTest is Microsoft supported Test Framework.
This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter.
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9+
|
9 |
|
MSTest
MSTest is Microsoft supported Test Framework.
This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter.
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9+
|
8 |
|
MSTest
This package is a meta package to simplify test projects. It includes MSTest.TestFramework and MSTest.TestAdapter.
Supported platforms:
- .NET 4.6.2+
- .NET 8.0+
- .NET 8.0 Windows.18362+ (WinUI)
- UWP 10.0.16299
- UWP 10.0.17763 with .NET 9+
MSTest is Microsoft supported Test Framework.
|
7 |
.NET Framework 4.6.2
- Microsoft.Testing.Extensions.Telemetry (>= 2.5.3)
- Microsoft.Testing.Extensions.TrxReport.Abstractions (>= 2.5.3)
- Microsoft.Testing.Platform.MSBuild (>= 2.5.3)
- MSTest.TestFramework (>= 4.5.3)
- Microsoft.TestPlatform.ObjectModel (>= 18.10.2)
- System.Memory (>= 4.6.3)
- System.Reflection.Metadata (>= 8.0.0)
- System.Threading.Tasks.Extensions (>= 4.5.4)
.NET 9.0
- Microsoft.TestPlatform.ObjectModel (>= 18.10.2)
- Microsoft.Testing.Platform.MSBuild (>= 2.5.3)
- Microsoft.Testing.Extensions.TrxReport.Abstractions (>= 2.5.3)
- MSTest.TestFramework (>= 4.5.3)
- Microsoft.Testing.Extensions.Telemetry (>= 2.5.3)
.NET 9.0
- Microsoft.Testing.Extensions.Telemetry (>= 2.5.3)
- Microsoft.Testing.Extensions.TrxReport.Abstractions (>= 2.5.3)
- Microsoft.Testing.Platform.MSBuild (>= 2.5.3)
- MSTest.TestFramework (>= 4.5.3)
- Microsoft.TestPlatform.ObjectModel (>= 18.10.2)
UAP 10.0.16299
- Microsoft.Testing.Extensions.Retry (>= 2.5.3)
- Microsoft.Testing.Extensions.Telemetry (>= 2.5.3)
- Microsoft.Testing.Extensions.TrxReport (>= 2.5.3)
- Microsoft.Testing.Platform.MSBuild (>= 2.5.3)
- MSTest.TestFramework (>= 4.5.3)
- Microsoft.TestPlatform.ObjectModel (>= 18.10.2)
- System.Memory (>= 4.6.3)
- System.Reflection.Metadata (>= 8.0.0)
- System.Threading.Tasks.Extensions (>= 4.5.4)
- Microsoft.Testing.Extensions.TrxReport.Abstractions (>= 2.5.3)
.NET 8.0
- Microsoft.TestPlatform.ObjectModel (>= 18.10.2)
- Microsoft.Testing.Extensions.Telemetry (>= 2.5.3)
- Microsoft.Testing.Extensions.TrxReport.Abstractions (>= 2.5.3)
- Microsoft.Testing.Platform.MSBuild (>= 2.5.3)
- MSTest.TestFramework (>= 4.5.3)
.NET 8.0
- Microsoft.Testing.Extensions.Telemetry (>= 2.5.3)
- Microsoft.Testing.Platform.MSBuild (>= 2.5.3)
- MSTest.TestFramework (>= 4.5.3)
- Microsoft.TestPlatform.ObjectModel (>= 18.10.2)
- Microsoft.Testing.Extensions.TrxReport.Abstractions (>= 2.5.3)
| Version | Downloads | Last updated |
|---|---|---|
| 4.5.3 | 1 | 11/19/2026 |
| 4.5.2 | 1 | 11/03/2026 |
| 4.5.1 | 2 | 10/21/2026 |
| 4.4.1 | 3 | 09/21/2026 |
| 4.4.0 | 7 | 09/21/2026 |
| 4.3.3 | 7 | 07/31/2026 |
| 4.3.2 | 8 | 07/26/2026 |
| 4.3.0 | 4 | 07/26/2026 |
| 4.2.3 | 8 | 05/30/2026 |
| 4.2.2 | 8 | 05/30/2026 |
| 4.2.1 | 9 | 04/11/2026 |
| 4.1.0 | 11 | 02/11/2026 |
| 4.0.2 | 5 | 12/17/2025 |
| 4.0.1 | 4 | 12/11/2025 |
| 4.0.0 | 4 | 12/17/2025 |
| 4.0.0-preview.25480.4 | 1 | 01/03/2026 |
| 4.0.0-preview.25465.3 | 2 | 12/30/2025 |
| 4.0.0-preview.25454.2 | 1 | 12/27/2025 |
| 4.0.0-preview.25452.10 | 2 | 12/31/2025 |
| 4.0.0-preview.25415.9 | 2 | 12/30/2025 |
| 4.0.0-preview.25372.6 | 2 | 12/30/2025 |
| 4.0.0-preview.25358.7 | 2 | 12/30/2025 |
| 3.11.1 | 6 | 12/11/2025 |
| 3.11.0 | 6 | 12/17/2025 |
| 3.10.5 | 6 | 12/17/2025 |
| 3.10.4 | 6 | 12/17/2025 |
| 3.10.3 | 5 | 12/17/2025 |
| 3.10.2 | 5 | 12/17/2025 |
| 3.10.1 | 5 | 12/17/2025 |
| 3.10.0 | 5 | 12/17/2025 |
| 3.9.3 | 6 | 12/17/2025 |
| 3.9.2 | 6 | 12/17/2025 |
| 3.9.1 | 5 | 12/17/2025 |
| 3.9.0 | 4 | 12/17/2025 |
| 3.9.0-preview.25167.10 | 2 | 12/29/2025 |
| 3.8.3 | 5 | 12/17/2025 |
| 3.8.2 | 4 | 12/11/2025 |
| 3.8.1 | 4 | 12/17/2025 |
| 3.8.0 | 4 | 12/17/2025 |
| 3.7.3 | 5 | 12/17/2025 |
| 3.7.2 | 5 | 12/17/2025 |
| 3.7.1 | 6 | 12/17/2025 |
| 3.7.0 | 6 | 12/17/2025 |
| 3.6.4 | 5 | 12/17/2025 |
| 3.6.3 | 5 | 12/17/2025 |
| 3.6.2 | 6 | 12/17/2025 |
| 3.6.1 | 12 | 12/17/2025 |
| 3.6.0 | 3 | 12/17/2025 |
| 3.5.2 | 4 | 12/17/2025 |
| 3.5.1 | 5 | 12/17/2025 |
| 3.5.0 | 6 | 12/17/2025 |
| 3.5.0-preview.24325.7 | 2 | 12/30/2025 |
| 3.4.3 | 5 | 12/17/2025 |
| 3.4.2 | 4 | 12/17/2025 |
| 3.4.1 | 4 | 12/17/2025 |
| 3.4.0 | 5 | 12/17/2025 |
| 3.3.1 | 4 | 12/17/2025 |
| 3.3.0 | 4 | 12/17/2025 |
| 3.3.0-preview.24164.4 | 2 | 12/30/2025 |
| 3.2.2 | 4 | 12/17/2025 |
| 3.2.1 | 4 | 12/17/2025 |
| 3.2.0 | 4 | 12/17/2025 |
| 3.2.0-preview.24069.3 | 2 | 12/30/2025 |
| 3.2.0-preview.23623.1 | 1 | 12/27/2025 |
| 3.2.0-preview.23622.1 | 1 | 12/27/2025 |
| 3.1.1 | 13 | 12/17/2025 |
| 3.0.4 | 16 | 12/17/2025 |
| 3.0.3 | 21 | 12/17/2025 |
| 3.0.2 | 12 | 12/17/2025 |
| 3.0.1 | 13 | 12/17/2025 |
| 3.0.0 | 13 | 12/17/2025 |
| 3.0.0-preview-20221122-01 | 13 | 12/17/2025 |
| 3.0.0-preview-20221110-04 | 10 | 01/03/2026 |
| 2.3.0-preview-20220810-02 | 12 | 12/17/2025 |
| 2.2.10 | 13 | 12/17/2025 |
| 2.2.10-preview-20220414-01 | 6 | 01/03/2026 |
| 2.2.9 | 14 | 12/17/2025 |
| 2.2.9-preview-20220210-07 | 7 | 01/03/2026 |
| 2.2.8 | 15 | 12/17/2025 |
| 2.2.7 | 15 | 12/17/2025 |
| 2.2.6 | 11 | 12/17/2025 |
| 2.2.5 | 14 | 12/17/2025 |
| 2.2.5-preview-20210605-01 | 8 | 01/03/2026 |
| 2.2.5-preview-20210604-01 | 12 | 01/03/2026 |
| 2.2.5-preview-20210531-02 | 10 | 01/03/2026 |
| 2.2.4 | 13 | 12/17/2025 |
| 2.2.4-preview-20210513-02 | 9 | 01/03/2026 |
| 2.2.4-preview-20210331-02 | 9 | 01/03/2026 |
| 2.2.3 | 15 | 12/17/2025 |
| 2.2.2 | 13 | 12/17/2025 |
| 2.2.1 | 14 | 01/03/2026 |
| 2.2.0-preview-20210115-03 | 6 | 01/03/2026 |
| 2.2.0-preview-20201126-03 | 11 | 01/03/2026 |
| 2.1.2 | 14 | 12/17/2025 |
| 2.1.1 | 13 | 12/17/2025 |
| 2.1.0 | 13 | 12/17/2025 |
| 2.1.0-beta2 | 13 | 12/17/2025 |
| 2.1.0-beta | 11 | 12/17/2025 |
| 2.0.0 | 11 | 12/17/2025 |
| 2.0.0-beta4 | 18 | 12/17/2025 |
| 2.0.0-beta2 | 12 | 12/17/2025 |
| 1.4.0 | 10 | 12/17/2025 |
| 1.4.0-beta | 13 | 12/17/2025 |
| 1.3.2 | 14 | 12/17/2025 |
| 1.3.1 | 14 | 12/17/2025 |
| 1.3.0 | 14 | 12/17/2025 |
| 1.3.0-beta2 | 10 | 01/03/2026 |
| 1.2.1 | 13 | 12/17/2025 |
| 1.2.0 | 16 | 12/17/2025 |
| 1.2.0-beta3 | 11 | 01/03/2026 |
| 1.2.0-beta | 12 | 12/17/2025 |
| 1.1.18 | 11 | 12/17/2025 |
| 1.1.17 | 10 | 12/17/2025 |
| 1.1.14 | 13 | 12/17/2025 |
| 1.1.13 | 12 | 12/17/2025 |
| 1.1.12 | 15 | 12/17/2025 |
| 1.1.11 | 12 | 12/17/2025 |
| 1.1.10-rc2 | 11 | 01/03/2026 |
| 1.1.9-rc2 | 7 | 01/03/2026 |
| 1.1.8-rc | 15 | 12/17/2025 |
| 1.1.6-preview | 8 | 12/17/2025 |
| 1.1.5-preview | 13 | 12/17/2025 |
| 1.1.4-preview | 11 | 12/17/2025 |
| 1.1.3-preview | 13 | 12/17/2025 |
| 1.1.1-preview | 12 | 12/17/2025 |
| 1.0.3-preview | 11 | 12/17/2025 |
| 1.0.2-preview | 13 | 12/17/2025 |
| 1.0.0-preview | 11 | 12/17/2025 |