SilentOrbit.WSLC 0.0.12

Prefix Reserved
dotnet add package SilentOrbit.WSLC --version 0.0.12
                    
NuGet\Install-Package SilentOrbit.WSLC -Version 0.0.12
                    
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="SilentOrbit.WSLC" Version="0.0.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SilentOrbit.WSLC" Version="0.0.12" />
                    
Directory.Packages.props
<PackageReference Include="SilentOrbit.WSLC" />
                    
Project file
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 SilentOrbit.WSLC --version 0.0.12
                    
#r "nuget: SilentOrbit.WSLC, 0.0.12"
                    
#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 SilentOrbit.WSLC@0.0.12
                    
#: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=SilentOrbit.WSLC&version=0.0.12
                    
Install as a Cake Addin
#tool nuget:?package=SilentOrbit.WSLC&version=0.0.12
                    
Install as a Cake Tool

WSL Container Wrapper

A wrapper for the wslc.exe command.

Offers a stronly typed interface to generate commands to manage containers on Windows.

Usage

Reference the WslcWrapper.csproj from the git repo or use the NuGet package SilentOrbit.WSLC.

Sample

//Get list of images
List<ImageListItem> list = new ImageList().RunJson();
        
//Create a container from one of the images
new ContainerCreate(image: list[0])
{
    Name = "Hello",
    RM = true, //--rm: Remove the container after it stops
}.Run().ExpectOK();
        
//Start the new container
var resp = new ContainerStart(containerid: "Hello").Run();
        
//Inspect the results
Console.WriteLine($"Result: {resp.ExitCode}");
Console.WriteLine($"Output: {resp.StdOut}");
Console.Error.WriteLine($"Error: {resp.StdErr}");
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.12 37 7/12/2026
0.0.11 44 7/11/2026
0.0.10 43 7/10/2026
0.0.9 45 7/9/2026
0.0.8 45 7/9/2026