Skip to main content
MSTest.TestFramework package icon

MSTest.TestFramework

This is MSTest V2, the evolution of Microsoft's Test Framework. Supported platforms: - .NET 4.5.0+ - .NET Core 1.0+ (Universal Windows Apps 10+, DNX Core 5+) - .NET 5.0 Windows.17763+ (WinUI Desktop Apps) (Visual Studio 2019) - ASP.NET Core 1.0+ To discover and execute tests install MSTest.TestAdapter.

Total Downloads
490.0M
489,996,528
Published
Sep 3, 2021
Latest stable version

Install

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

Frameworks

.NETStandard1.0 .NETFramework4.5 UAP10.0 net5.0-windows10.0.18362

Dependencies

NETStandard.Library
.NETStandard1.0
[1.6.1, )

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.

NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.

Compatibility metadata lists 4 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.