PipedProcess 2.1.2
dotnet add package PipedProcess --version 2.1.2
NuGet\Install-Package PipedProcess -Version 2.1.2
<PackageReference Include="PipedProcess" Version="2.1.2" />
paket add PipedProcess --version 2.1.2
#r "nuget: PipedProcess, 2.1.2"
// Install PipedProcess as a Cake Addin #addin nuget:?package=PipedProcess&version=2.1.2 // Install PipedProcess as a Cake Tool #tool nuget:?package=PipedProcess&version=2.1.2
PipedProcess
C++ helper class to create a child process with redirected std in/out/error streams using the Windows API.
What it does
It can be used to pass arbitrary binary input data to the child process via stdin and retrieve the result data via stdout. Errors can be received via stderr.
What it does not
Currently the class can not be used for asynchronous communication (e.g. messages) to and from the child process.
MIT License
Feel free to use. See LICENSE
file for further information.
How to build
The project is a Visual Studio 2022 solution. It should be possible to build it with other compilers, but I have not tested it.
Create nuget package
Get CoApp script from https://coapp.github.io/pages/releases.html
Install CoApp
Run the following command to create the NuGet package
Write-NuGetPackage .\PipedProcess.autopkg
Product | Versions Compatible and additional computed target framework versions. |
---|---|
native | native is compatible. |
This package has 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.
updated to vc 2022 and c++17; improved testing; improved comments