Skip to content

Instantly share code, notes, and snippets.

@Dillie-O
Created November 28, 2012 17:43
Show Gist options
  • Save Dillie-O/4162791 to your computer and use it in GitHub Desktop.
Save Dillie-O/4162791 to your computer and use it in GitHub Desktop.
Pre-Build Event to check for string in file
findstr /c:"[STRING TO FIND]" "$(SolutionDir)[FILE NAME]" >nul 2>&1
if errorlevel 1 echo [YOUR ERROR MESSAGE HERE].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment