title: How to specify default Application Pool in ASP.NET MVC Project?
body: <p>In my ASP.NET MVC project I have added a parameters.xml file that looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;parameters&gt;
    &lt;parameter name="Application Pool" description="Application Pool Name" defaultValue="PreferredPool"&gt;
      &lt;parameterEntry kind="DeploymentObjectAttribute"
                      scope="appHostConfig"
                      match="application/@applicationPool"/&gt;
    &lt;/parameter&gt;
  &lt;/parameters&gt;
  </code></pre>
  
  <p>Then I go ahead and build the deployment package:</p>
  
  <pre><code>MSBuild.exe myproject.csproj /t:Package /p:PackageLocation="C:\packages\myproject.zip"
  </code></pre>
  
  <p>And then I invoke the batch script generated (myproject.deploy.cmd) and deploy the app to a local IIS 7 server. The problem is, it is always the Default Application Pool that is assigned to the app instead of the PreferredPool as specified in parameters.xml.</p>
  
  <p>What did I do wrong?</p>