MSTest.Sdk
4.5.1
Prefix Reserved
dotnet add package MSTest.Sdk --version 4.5.1
NuGet\Install-Package MSTest.Sdk -Version 4.5.1
<PackageReference Include="MSTest.Sdk" Version="4.5.1" />
<PackageVersion Include="MSTest.Sdk" Version="4.5.1" />
<PackageReference Include="MSTest.Sdk" />
paket add MSTest.Sdk --version 4.5.1
#r "nuget: MSTest.Sdk, 4.5.1"
#:package MSTest.Sdk@4.5.1
#addin nuget:?package=MSTest.Sdk&version=4.5.1
#tool nuget:?package=MSTest.Sdk&version=4.5.1
MSTest.Sdk
MSTest is Microsoft supported Test Framework.
This package includes a custom test SDK for writing tests with MSTest.
Getting started
Create a test project by using MSTest.Sdk as the project SDK. Replace the example version with the version you want to use.
<Project Sdk="MSTest.Sdk/4.1.0">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
</Project>
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
For package identity, AUMID activation, unpackaged WinUI, UWP launch activation, UI dispatchers, and AppContainer security guidance, see Testing UWP and WinUI apps with MSTest.
For packaged Windows applications, the SDK references
Microsoft.Testing.Extensions.PackagedApp.MSBuild from the aligned MTP release.
That separately shipped package owns the full-trust controller, shared launch
targets and classic UWP bootstrap; the SDK does not embed a second controller
payload. MSTest metapackage and adapter-only projects can reference the same
integration explicitly with EnableMSTestRunner=true.
Documentation
For setup guidance, see https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-getting-started.
For SDK configuration options, see https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-sdk.
GitHub Actions reporting
In ClassicEngine mode, the --report-gh option is provided by Microsoft.Testing.Extensions.GitHubActionsReport; it is not included in the default extension profile. Enable it explicitly:
<PropertyGroup>
<EnableMicrosoftTestingExtensionsGitHubActionsReport>true</EnableMicrosoftTestingExtensionsGitHubActionsReport>
</PropertyGroup>
Alternatively, set TestingExtensionsProfile to AllMicrosoft. After the extension is included, --help lists --report-gh and its related options. The extension is not supported in VSTest or NativeAOT mode.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 4.5.1 | 222 | 10/7/2026 | |
| 4.4.1 | 63,899 | 9/16/2026 | |
| 4.4.0 | 78,890 | 9/2/2026 | |
| 4.3.3 | 245,887 | 7/28/2026 | |
| 4.3.2 | 97,740 | 7/13/2026 | |
| 4.3.0 | 14,076 | 7/8/2026 | |
| 4.2.3 | 269,817 | 5/14/2026 | |
| 4.2.2 | 108,315 | 4/30/2026 | |
| 4.2.1 | 99,706 | 4/7/2026 | |
| 4.1.0 | 355,593 | 2/3/2026 | |
| 4.0.2 | 421,256 | 11/11/2025 | |
| 4.0.1 | 254,787 | 10/14/2025 | |
| 4.0.0 | 10,800 | 10/7/2025 | |
| 4.0.0-preview.25480.4 | 918 | 9/30/2025 | |
| 4.0.0-preview.25465.3 | 8,006 | 9/15/2025 | |
| 4.0.0-preview.25454.2 | 747 | 9/4/2025 | |
| 4.0.0-preview.25452.10 | 691 | 9/2/2025 | |
| 3.11.1 | 121,960 | 11/11/2025 | |
| 3.11.0 | 23,491 | 10/1/2025 | |
| 3.10.5 | 2,268 | 9/30/2025 |
See the release notes at https://github.com/microsoft/testfx/blob/main/docs/Changelog.md#4.5.1.