Refactor ScriptExecutor, add test cases for scriptexecutor.
Add TargetFramework and FullTargetFramework to compile and publish script variables. Add ProjectLocal Command Resolution Strategy. Fixup ArgumentEscaper to not always quote things. Fixes #1216 Fixes #1016 Fixes #982
This commit is contained in:
parent
dbc9032202
commit
c1e28ae921
21 changed files with 421 additions and 164 deletions
|
@ -24,7 +24,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
if (!Path.IsPathRooted(_command))
|
||||
{
|
||||
_command = Env.GetCommandPath(_command) ??
|
||||
Env.GetCommandPathFromAppBase(AppContext.BaseDirectory, _command);
|
||||
Env.GetCommandPathFromRootPath(AppContext.BaseDirectory, _command);
|
||||
}
|
||||
|
||||
Console.WriteLine($"Executing - {_command} {args}");
|
||||
|
@ -43,7 +43,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
Console.WriteLine($"Executing (Captured Output) - {_command} {args}");
|
||||
|
||||
var commandPath = Env.GetCommandPath(_command, ".exe", ".cmd", "") ??
|
||||
Env.GetCommandPathFromAppBase(AppContext.BaseDirectory, _command, ".exe", ".cmd", "");
|
||||
Env.GetCommandPathFromRootPath(AppContext.BaseDirectory, _command, ".exe", ".cmd", "");
|
||||
|
||||
var stdOut = new StreamForwarder();
|
||||
var stdErr = new StreamForwarder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue