Skip to main content

The MSbuild targets and properties for building .NET test projects.

Total Downloads
2.0B
2,023,380,713
Published
Nov 10, 2026
today

Get Started

dotnet add package Microsoft.NET.Test.Sdk --version 18.11.1
ProductVersions
.NET
net8.0
Other
.NETFramework4.6.2

README

Microsoft.NET.Test.Sdk

The MSBuild targets and properties for building .NET test projects. This package is required for any .NET test project to integrate with the Visual Studio Test Platform.

Usage

Add this package to your test project:

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="x.y.z" />

This package works alongside a test framework adapter (e.g., MSTest, xUnit, NUnit) to enable test discovery and execution via dotnet test or Visual Studio Test Explorer.

Example

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="x.y.z" />
    <PackageReference Include="MSTest" Version="3.x.y" />
  </ItemGroup>
</Project>

Links

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

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

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.