.NETFramework4.6.2net8.0.NETStandard2.0
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.
Published
Nov 10, 2026
13d ago
Total Downloads
1.4M
1,420,394
Install
dotnet add package Microsoft.TestPlatform.TranslationLayer --version 18.11.1
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard | |
| Other |
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
Changes from Previous Version
No structural changes between v18.11.0 and v18.11.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 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.