title: Automation Task in Visual Studios
body: <p>I am working on a c++ solution which contains 20 projects. My first project builds and I run it as a pre-build event for rest of the projects. Now this executable actually creates some c++ files which should get added to all the other projects which are yet to be compiled. How should I do this? (Using VS2008)</p>
  
  <p>Here are few solutions I thought.</p>
  
  <p>Solution 1:</p>
  
  <p>Let the exe update the vcproj file for all the remaining projects. But in this case as the project is on in VS, it creates some reload popup which I dont want.  So is there any way to suppress this popup and just save the changes.</p>
  
  <p>Solution 2:</p>
  
  <p>Visual Automation:</p>
  
  <p>I was just going through some automation API.</p>
  
  <p>The solution and project interface methods would help in adding new file. But will it not create a new pop up as the previous on?  Can I use MSbuild here?</p>