I am using the Build Events with Microsoft Visual Studio Express 2012 to copy some files into the $(TargetDir)
. How can I stop the build if a particular file isn't found. Currently I have something like:
IF EXIST somefile (
ECHO true
) ELSE (
ECHO false
)
With displays true
and false
to the build output dialog as appropriate but I'd like to replace ECHO false
with
ELSE (
ECHO somefile was not found
exit
)
Where exit
stops the Visual Studio from building the project and somefile was not found
is the last message displayed in the output console.