The line below sets the default behavior for process paths as accepting only full paths.
|
internal static Regex ProgramPath = new Regex(@"([A-Z]:\\[^/:\*\?<>\|]+\.((exe)))|(\\{2}[^/:\*\?<>\|]+\.((exe)))", RegexOptions.IgnoreCase); |
That makes the line below to give exception because "notepad" is called from environment path adn does not include full path.
|
var wardenTest = await WardenProcess.Start("notepad", string.Empty, null); |
Until the ProgramPath Regex is modified, the README and WardenExample project can be changed accordingly.