Swallowing errors in pre-build steps in Visual Studio 2010 September 15, 2023 by Tarik I figured it out – you simply need to add the following statement at the end: SET ERRORLEVEL = 0 or simply: EXIT 0