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

Popular posts from this blog

Linux vanilla kernel on QEMU and networking with eth0 -

rdbms - what exactly the undo information lives in oracle? -

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -