[英]How do i use Visual Studio 2013 Pre-Build event to exclude a script from build?
[英]How do I suppress the following commands from throwing errors on a pre-build event?
我已經嘗試將以下兩個調用傳遞給NUL而沒有運氣:
net stop "Logging Service">nul 2>&1
taskkill /IM LogServiceHost.exe /f >nul 2>&1
他們將阻止我的構建周期通過:
Error 1 The command "
net stop "Logging Service">nul 2>&1
taskkill /IM LogServiceHost.exe /f >nul 2>&1" exited with code 128. LoggingUtilities
任何想法我怎么可以解雇這些預建事件而不關心他們返回什么,而不是讓它壓制我的構建?
嘗試在構建后事件結束時添加以下行。 這應該導致自動生成的.bat腳本返回ERRORLEVEL 0。
exit /b 0
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.