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" />
<PackageReference Include="SilentOrbit.WSLC" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=SilentOrbit.WSLC&version=0.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.