Skip to main content
.NETFramework4.6.2net8.0

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

Published
Sep 15, 2026
1mo ago
Total Downloads
2.0B
1,969,333,684

Install

dotnet add package Microsoft.NET.Test.Sdk --version 18.10.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

Changes from Previous Version

No structural changes between v18.10.0 and v18.10.1.

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.