MSTest.TestFramework
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+ MSTest is Microsoft supported Test Framework.
Install
dotnet add package MSTest.TestFramework --version 4.4.0
Install-Package MSTest.TestFramework -Version 4.4.0
<PackageReference Include="MSTest.TestFramework" Version="4.4.0" />
Frameworks
Dependencies
Adoption guide
Repositories that prefer first-party tooling and existing MSTest conventions.
Compatibility metadata lists 7 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.