ShellLibrary.dll 2.1.0

Suggested Alternatives

Tools.Shell

Additional Details

I make a new package with my studio. The new package can run command more easily.

dotnet add package ShellLibrary.dll --version 2.1.0
NuGet\Install-Package ShellLibrary.dll -Version 2.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="ShellLibrary.dll" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ShellLibrary.dll --version 2.1.0
#r "nuget: ShellLibrary.dll, 2.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.
// Install ShellLibrary.dll as a Cake Addin
#addin nuget:?package=ShellLibrary.dll&version=2.1.0

// Install ShellLibrary.dll as a Cake Tool
#tool nuget:?package=ShellLibrary.dll&version=2.1.0

C# .NET Framework

using ShellLibrary;

namespace CsTest
{
    internal class Program
    {
        private async void Main(string[] args)
        {
            await Task.Run(() =>
            {
                Shell.RunCommand("ipconfig", "2", "false", false, false, false);
            Shell.RunCommand("pause");
            }
        }
    }
}

Visual Basic .NET Framework

Using ShellLibrary

Namespace VbTest
    Public Class Program
        Private Async Sub Main(args As String())
            Await Task.Run(Sub()
                Shell.RunCommand("ipconfig", "2", "False", False, False, False)
            Shell.RunCommand("pause")
            End Sub)
        End Sub
    End Class
End Namespace

F# .NET Framework

open ShellLibrary
open System.Threading.Tasks

type Program() =
    member this.Main(args : string array) =
        let task = async {
            do! Shell.RunCommand("ipconfig", "2", "false", false, false, false) |> Async.AwaitTask
            Shell.RunCommand("pause") |> ignore
        }
        task |> Async.Start
Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.1.0 116 2/15/2024