private static void StartProcess()

in src/installer/BeatPackageCompiler/AgentCustomAction.cs [44:55]


        private static void StartProcess(Session session, Process process)
        {
            // https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.process.standardoutput?view=net-8.0
            process.StartInfo.UseShellExecute = false;
            process.StartInfo.RedirectStandardError = true;
            process.StartInfo.CreateNoWindow = true;
            session.Log("Running command: " + process.StartInfo.FileName + " " + process.StartInfo.Arguments);
            process.Start();
            session.Log("stderr of the process:");
            session.Log(process.StandardError.ReadToEnd());
            process.WaitForExit();
        }