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 project/solution in Visual Studio
Is there a way for Visual Studio 2012 / 2013 to report an error/warning when you build a solution that has missing files?