I have a condition, for simplicity let's say if a A.txt exist in the folder. I have couple projects in the solution, and when building projectB, I want it to check this condition and it should only continue to build the project (produce the project .dll file) if the condition failed. If the condition passes, it should skip the current project and move on to the next project in the solution. How do I achieve this? I was thinking to specify the condition in projectB's pre-build event, but I don't know the command to skip the build and move on to the next one, or if there's even one for it. Is this doable? I am working in visual studio 2008.