문제

I have tried piping the following two calls to NUL with no luck:

net stop "Logging Service">nul 2>&1
taskkill /IM LogServiceHost.exe /f >nul 2>&1

They will stop my build cycle from going through:

Error   1   The command "
net stop "Logging Service">nul 2>&1
taskkill /IM LogServiceHost.exe /f >nul 2>&1" exited with code 128. LoggingUtilities

Any ideas how I can just fire these prebuild events and not care what they return, and not have it ever suppress my build?

도움이 되었습니까?

해결책

Try adding the following line at the end of your post-build event. This should cause the automatically-generated .bat script to return an ERRORLEVEL 0.

exit /b 0
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top