Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 323 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 323 Bytes

Right way to run external app (for example bash command) from C#

Use static class ProcessHelper:

    try
    {
        string result = await ProcessLauncher.RunAsync("dotnet", "build");
        Console.WriteLine(result);
    }
    catch (Exception exc)
    {
        Console.WriteLine(exc.Message);
    }