Visual Studio no longer supports macros, so the answer in the following question is only valid for previous releases:
Report error/warning if missing files in projec
With regards to breaking the build when missing files are detected, the closest I have found is to cancel the build (in conjunction with the OnBuildBegin event) using the following:
DTE.ExecuteCommand("Build.Cancel")