title: Visual Studio 2010 custom compile using batch file
body: <p>I have recently converted a mid-sized Visual Studio 2005 solution to Visual Studio 2010.
  One of the projects contains files which are not C/C++ files and are compiled using a batch file running a custom build tool. The output of the custom build step is some C++ files, which must be compiled after that.</p>
  
  <p>The output of the custom build step in the properties for the relevant files is correctly set to the generated C++ files.</p>
  
  <p>The problem is that sometimes VS2010 tries to compile the generated C++ files before the files with the custom build step, which means in a clean build it fails to find the C++ files and fails. If I try building several times eventually it would compile the custom files and then the build will succeed, but this is obviously not a good solution for automated build.</p>
  
  <p>In VS2005 there is no problem building this project, but VS2010 fails to determine the correct compile order from the outputs of the custom build step. Is there another way to force correct compile order in VS2010?</p>