title: how do I use web deploy to deploy multiple sites on localhost with different ports
body: <p>I have a solution that contains multiple integration test projects and one web application project. each integration project connects to the web application when running the tests. I would like for each test project to access the website with its own database connection. I have been trying to use the web deploy functionality built into visual studio. However I have been unable to figure out what I need to add to either the deployment package that is created and/or the post build event for the test projects to declare the binding port for the website when deployed. For example, I want integration project A to create and access the website located at <a href="http://localhost:83" rel="nofollow">http://localhost:83</a> and integration project B to create and access the website located at <a href="http://localhost:82" rel="nofollow">http://localhost:82</a>. Could someone please explain:</p>
  
  <ol>
  <li>Is there anything I need to do the deployment package ?</li>
  <li>What do I need to add to my post-build events for my integration projects when deploying the package, so that the website is created at the correct port when building the project? </li>
  </ol>
  
  <p>Update:
  I'm wanting to deploy the same site to two different locations on my machine so that I can run both sets of integration tests at the same time.</p>
  
  <p>Update 2:
  I have researched the web deploy tool and it allows you to specify parameters that modify what is deployed when you call it from the command line. However I have found the documentation very confusing. <a href="http://technet.microsoft.com/en-us/library/dd568968(WS.10).aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/dd568968(WS.10).aspx</a></p>
  
  <p>Update 3:
  I expect these to be two different websites, each pointing to there own database. If possible I would like a single package that can be deployed using msdeploy. Which will then be called in a post build event from each of the integration test projects. I would like to specify the connection string and deployment location from the post build script of the integration project.</p>