Swallowing errors in pre-build steps in Visual Studio 2010

前端 未结 6 2041
情话喂你
情话喂你 2020-12-08 14:02

My solution has a bunch of projects one of which is a windows service; I have a prebuild step to stop the service and a postbuild step to restart it (this way the windows se

6条回答
  •  [愿得一人]
    2020-12-08 14:20

    I figured it out - you simply need to add the following statement at the end:

    SET ERRORLEVEL = 0
    

    or simply:

    EXIT 0
    

提交回复
热议问题