The following code works fine on LINQPad on Windows:
void Main()
{
Command.Run(
@"C:\Program Files\dotnet\dotnet.exe",
new[] { "--version" })
.GetOutputAndErrorLines()
.Dump();
}
but the following fails:
void Main()
{
Command.Run(
@".\dotnet.exe",
new[] { "--version" },
o => o.WorkingDirectory(@"C:\Program Files\dotnet\"))
.GetOutputAndErrorLines()
.Dump();
}
Is this a bug or an expected behavior?