Skip to main content

C# SDK for the test platform protocol. This SDK can be used in IDE or Editors to use test platform for discovery and execution of tests.

Total Downloads
1.4M
1,368,077
Published
Oct 13, 2026
24d ago

Get Started

dotnet add package Microsoft.TestPlatform.TranslationLayer --version 18.11.0
ProductVersions
.NET
net8.0
.NET Standard
netstandard2.0
Other
.NETFramework4.6.2

README

Microsoft.TestPlatform.TranslationLayer

The C# SDK for the Visual Studio Test Platform protocol. Use this package to programmatically discover and execute tests from IDEs, editors, or custom tools by communicating with vstest.console.

Usage

<PackageReference Include="Microsoft.TestPlatform.TranslationLayer" Version="x.y.z" />

Example

var vstestConsolePath = "<path to vstest.console.exe or .dll>";
var consoleWrapper = new VsTestConsoleWrapper(vstestConsolePath);

consoleWrapper.StartSession();
consoleWrapper.InitializeExtensions(extensionPaths);

// Discover tests
consoleWrapper.DiscoverTests(testAssemblies, settings, discoveryHandler);

// Run tests
consoleWrapper.RunTests(testAssemblies, settings, executionHandler);

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 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.