c# - MSBuild taskkill error -
i'm using msbuild visual studio 2013 express, , try kill vstest.console.exe process, if not initialized giving error.
how stop command , not have error when process not initialized.
code:
<exec program="taskkill" commandline="/f /im vstest.console.exe" />
error:
external program failed: taskkill (return code 128)
you can use ignoreexitcode
parameter ignore non-zero exit codes.
<exec program="taskkill" commandline="/f /im vstest.console.exe" ignoreexitcode="true"/>
Comments
Post a Comment