title: How do I deploy many MSDeploy publish profiles in a single MSBuild command?
body: <p>I have a project that I need to deploy with a couple of different configurations (specifically, deploying the same package to 2 different IIS applications). I have set up 2 Publish Profiles, and each creates a package when invoked individually. I'd like to create both packages with a single command.</p>
  
  <p>I've tried commands like this, but they tend to simply ignore the second profile:</p>
  
  <pre><code>msbuild MyWebProject.csproj /p:DeployOnBuild=True "/p:PublishProfile=FirstProfile;PublishProfile=SecondProfile"
  </code></pre>
  
  <p>Is there a way that I can use a single command to deploy both profiles?</p>