I am struggling to make this work. Below is a quick test I am running but it does not kick off .net core exe.
I've published the .net core exe here as a single file and output type as windows exe. If I run it on the command line, it works and creates logs etc..
var startInfo = new ProcessStartInfo(@"C:\Dev\Console.exe")
{
CreateNoWindow = true,
ErrorDialog = false,
UseShellExecute = false,
RedirectStandardOutput = true,
Arguments = "2019-08-29 25",
WorkingDirectory = @"C:\Dev\"
};
try
{
var process = Process.Start(startInfo);
var standardOutput = process.StandardOutput;
process.WaitForExit();
var output = standardOutput.ReadToEnd();
Debug.WriteLine("Output: " + output);
}
catch (Exception ex)
{
Debug.WriteLine(ex.ToString());
}