VSTestPlaylistTools.V1Playlist
1.1.0
dotnet add package VSTestPlaylistTools.V1Playlist --version 1.1.0
NuGet\Install-Package VSTestPlaylistTools.V1Playlist -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VSTestPlaylistTools.V1Playlist" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VSTestPlaylistTools.V1Playlist" Version="1.1.0" />
<PackageReference Include="VSTestPlaylistTools.V1Playlist" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VSTestPlaylistTools.V1Playlist --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VSTestPlaylistTools.V1Playlist, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package VSTestPlaylistTools.V1Playlist@1.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VSTestPlaylistTools.V1Playlist&version=1.1.0
#tool nuget:?package=VSTestPlaylistTools.V1Playlist&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PlaylistV1 - Visual Studio Test Playlist V1 Parser and Builder
This folder contains a clean implementation of a parser and builder for Visual Studio Test Playlist Version 1.0 format.
Overview
The PlaylistV1 implementation provides functionality to:
- Parse Visual Studio Test Playlist V1.0 XML files
- Create and build new playlist files programmatically
- Validate playlist file format
- Perform round-trip conversions (parse and regenerate identical XML)
Usage Examples
Parsing a Playlist File
using PlaylistV1;
// Parse from file
var playlist = PlaylistV1Parser.ParseFromFile("myplaylist.playlist");
Console.WriteLine($"Found {playlist.TestCount} tests");
// Parse from string
string xmlContent = "<Playlist Version=\"1.0\"><Add Test=\"MyTest\" /></Playlist>";
var playlist2 = PlaylistV1Parser.ParseFromString(xmlContent);
Building a Playlist
using PlaylistV1;
// Create a simple playlist
var playlist = PlaylistV1Builder.Create("Test1", "Test2", "Test3");
// Use fluent builder pattern
var playlist2 = PlaylistV1Builder.CreateBuilder()
.AddTest("MyNamespace.MyClass.TestMethod1")
.AddTest("MyNamespace.MyClass.TestMethod2")
.AddTests("Test3", "Test4", "Test5")
.Build();
// Convert to XML
string xml = PlaylistV1Builder.ToXmlString(playlist);
// Save to file
PlaylistV1Builder.SaveToFile(playlist, "output.playlist");
Working with Playlist Objects
var playlist = new PlaylistV1.Models.PlaylistV1();
// Add tests
playlist.AddTest("MyTest1");
playlist.AddTest("MyTest2");
// Remove tests
playlist.RemoveTest("MyTest1");
// Check test count
Console.WriteLine($"Playlist contains {playlist.TestCount} tests");
XML Format
The V1 playlist format is simple and consists of:
<Playlist Version="1.0">
<Add Test="FullyQualifiedTestName1" />
<Add Test="FullyQualifiedTestName2" />
</Playlist>
Key characteristics:
- Root element is
<Playlist>
withVersion="1.0"
- Each test is represented by an
<Add>
element with aTest
attribute - Test names should be fully qualified (e.g.,
Namespace.Class.Method
)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on VSTestPlaylistTools.V1Playlist:
Package | Downloads |
---|---|
VSTestPlaylistTools
A .NET library for creating, parsing, and manipulating Visual Studio test playlist files. Supports advanced playlist building and integration with test runners. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.1.0 | 169 | 6/24/2025 |
0.0.2 | 168 | 6/17/2025 |
0.0.2-alpha | 209 | 6/13/2025 |
0.0.1-alpha | 297 | 6/13/2025 |