1

I am running an msbuild command that I point to a Publish Profile.

Here is a snippet of the publish profile:

<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <WebPublishMethod>MSDeploy</WebPublishMethod>
    <SiteUrlToLaunchAfterPublish />
    <MSDeployServiceURL>https://mysexyserver:8172</MSDeployServiceURL>
    <DeployIisAppPath>MysexyApp</DeployIisAppPath>
    <RemoteSitePhysicalPath />
    <SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
    <MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
    <UserName>mydom\myuser</UserName>
    <_SavePWD>False</_SavePWD>
    .....

I want to use the createApp provider so when I deploy to the server it automatically creates my app pool and iis site.

Where do I specify I want to use the createApp provider? Do I put it under the ProperyGroup node in the publish profile? Do I pass it as an arg to the msbuild command? Haven't found any clear examples of this I can figure out.

Is there an option instead of DeployIisAppPath that will use the createApp web deploy provider to automatically create the site and app pool???

red888
  • 27,709
  • 55
  • 204
  • 392

1 Answers1

1

I think you should use it as an argument to the msdeploy command:

msdeploy -verb:sync -source:createapp="Default Web Site/MyCreatedApp" -dest:auto

See valid msdeploy properties in msbuild: https://stackoverflow.com/a/5598737/1093508

The best you can try is DeployIisAppPath:

<DeployIisAppPath>createapp="Default Web Site/MyCreatedApp"</DeployIisAppPath>
Community
  • 1
  • 1
Dávid Molnár
  • 10,673
  • 7
  • 30
  • 55