Skip to main content
MSTest.TestFramework package icon

MSTest.TestFramework

MSTest is Microsoft supported Test Framework. This package includes the libraries for writing tests with MSTest. To ensure discovery and execution of your tests, install the MSTest.TestAdapter package. 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+

Total Downloads
470.5M
470,502,190
Published
Feb 3, 2026
Latest stable version

Install

.NET CLI
dotnet add package MSTest.TestFramework --version 4.1.0
Package Manager Console
Install-Package MSTest.TestFramework -Version 4.1.0
PackageReference
<PackageReference Include="MSTest.TestFramework" Version="4.1.0" />

Frameworks

.NETStandard2.0 .NETFramework4.6.2 UAP10.0 net8.0 net9.0

Dependencies

MSTest.Analyzers
.NETStandard2.0
[4.1.0, )
[4.5.4, )
MSTest.Analyzers
.NETFramework4.6.2
[4.1.0, )
[4.5.4, )
[4.1.0, )
[4.1.0, )
[4.1.0, )

Adoption guide

Repositories that prefer first-party tooling and existing MSTest conventions.

Unit Testing guide
Why it appears in the guide: Microsoft's test framework, especially practical in Visual Studio-centred solutions. Trade-off: Compare its current data-driven and extensibility needs against the alternatives before a large migration.

Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.