Install
dotnet add package Microsoft.NET.Test.Sdk --version 18.8.0
| Product | Versions |
|---|---|
| .NET | |
| Other |
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.7.0 and v18.8.0.
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 3 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.