Exec 0.9.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Exec --version 0.9.2
NuGet\Install-Package Exec -Version 0.9.2
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="Exec" Version="0.9.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Exec --version 0.9.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Exec, 0.9.2"
#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 Exec as a Cake Addin #addin nuget:?package=Exec&version=0.9.2 // Install Exec as a Cake Tool #tool nuget:?package=Exec&version=0.9.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
A dotnet library to fire subprocess command call.
Usage
Install from NuGet
dotnet add package Exec
This library supports .NET 5 and version onwards.
Basic usage
var output = await Exec.RunAsync("echo hello");
Assert.Contains("hello", output);
That's all.
Application just call the static methods of Exec
class, along with below APIs.
Task<string> RunAsync(string command, CancellationToken cancellationToken = default)
Task<string> RunAsync(string command, ExecOption option, CancellationToken cancellationToken = default)
The ExecOption
can accept customized parameters in case of the default behavior not meet your requirements.
Property | Comment | Default |
---|---|---|
Shell | The shell application used to execute command passed in. | In windows default to cmd.exe , and /bin/sh for Linux and macOS. |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.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 |
---|---|---|
1.2.0 | 362 | 11/24/2023 |
1.1.0 | 122 | 10/15/2023 |
1.0.0 | 124 | 10/12/2023 |
0.9.2 | 93 | 10/12/2023 |
0.9.1 | 90 | 10/11/2023 |
0.9.0 | 87 | 10/11/2023 |
0.1.0-alpha | 75 | 10/10/2023 |
0.0.1-alpha | 67 | 10/10/2023 |