Skip to content

Commit 81c7c0c

Browse files
authored
Merge pull request #59 from XiaoHeitu/fix_win7
移除Input重定向,解决win7下PowerShell 无法Exit 的问题。
2 parents 6e0dd78 + 028aed6 commit 81c7c0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SmartCode.App/BuildTasks/ProcessBuildTask.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public Task Build(BuildContext context)
3737
var startInfo = new ProcessStartInfo(fileName)
3838
{
3939
UseShellExecute = false,
40-
RedirectStandardInput = true,
40+
RedirectStandardInput = false,
4141
RedirectStandardOutput = true,
4242
RedirectStandardError = true,
4343
CreateNoWindow = DEFAULT_CREATE_NO_WINDOW
@@ -103,7 +103,7 @@ public Task Build(BuildContext context)
103103
}
104104
_logger.LogDebug($"--------Process.FileName:{startInfo.FileName},Args:{startInfo.Arguments},Taken:{process.TotalProcessorTime.TotalMilliseconds} End--------");
105105
}
106-
return Task.CompletedTask;
106+
return Task.CompletedTask;
107107
}
108108

109109
private void Process_ErrorDataReceived(object sender, DataReceivedEventArgs e)

0 commit comments

Comments
 (0)