Real-time output from SteamCMD with Pseudo Console (ConPTY)
Find the package through NuGet Package Manager or install it with following command.
dotnet add package SteamCMD.ConPTYA library using ConPTY feature to get real-time output from SteamCMD.
using SteamCMD.ConPTY;
using SteamCMD.ConPTY.Interop.Definitions;
var steamCMDConPTY = new SteamCMDConPTY
{
Arguments = "+login anonymous +app_update 232250 +quit",
};
steamCMDConPTY.TitleReceived += (sender, data) => { };
steamCMDConPTY.OutputDataReceived += (sender, data) => { };
steamCMDConPTY.Exited += (sender, exitCode) => { };
ProcessInfo processInfo = steamCMDConPTY.Start();
// Get SteamCMD PID by ProcessInfo
Console.WriteLine(processInfo.dwProcessId);A demo WPF application using the SteamCMD.ConPTY library. Requires .NET Core 3.1.
Download: https://github.com/WindowsGSM/SteamCMD.ConPTY/releases/latest
