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+
Install
dotnet add package MSTest.TestFramework --version 4.1.0
Install-Package MSTest.TestFramework -Version 4.1.0
<PackageReference Include="MSTest.TestFramework" Version="4.1.0" />
Frameworks
Dependencies
Adoption guide
Repositories that prefer first-party tooling and existing MSTest conventions.
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.