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

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

c++ - libcurl curl_easy_setopt "Unknown error" -

vb6 - PostgreSQL ODBC Connection SSPI Authentication Failure -