提交 f2ce344f 编写于 作者: M Matt Ellis

Hide standard error from taskkill as well.

In cases where there's no process to kill, TaskKill will write a
message with the words "ERROR:" to standard error. This will cause
MSBuild (when invoking cibuild.cmd as part of a composed build) to
think that the Roslyn sub-build failed.
上级 0e2ef890
......@@ -147,10 +147,16 @@ exit /b 1
@REM An error-level of 1 means that the process was found, but could not be killed.
echo Killing all build-related processes
taskkill /F /IM msbuild.exe > nul
if %ERRORLEVEL% == 1 exit /b 1
taskkill /F /IM msbuild.exe > nul 2>&1
if %ERRORLEVEL% == 1 (
echo ERROR: taskkill for msbuild.exe failed
exit /b 1
)
taskkill /F /IM vbcscompiler.exe > nul
if %ERRORLEVEL% == 1 exit /b 1
taskkill /F /IM vbcscompiler.exe > nul 2>&1
if %ERRORLEVEL% == 1 (
echo ERROR: taskkill for vbcscompiler.exe failed
exit /b 1
)
exit /b 0
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册