title: How to build dependent project first with msbuild
body: <p>I have just started looking into msbuild, because I want to make my own build scripts. For now I am able to create build scripts that compiles only one project, but how do I handle dependencies? </p>
  
  <p>For example what if I have two projects that gets build with these two msbuild scripts?</p>
  
  <ol>
  <li>projectA.xml</li>
  <li>projectB.xml</li>
  </ol>
  
  <p>How do I tell msbuild that when I am executing projectB.xml that it should first execute projectA.xml? </p>
  
  <p>I have googled alot on this, but it does not seem to get anything that a starter like me understands. I would be more than happy with a link to an article describing this, or maybe just a small code example.</p>
  
  <p>The reason why I want this control is because of a library I am building. The library consists of several projects. A developer should be able to pull the source code for the library down and build only the libraries that he wants.</p>
  
  <p>Actually I want to be able to build .net modules from the different projects. That is why I want to be able to run a customized msbuild script.</p>