I use IIS6, Web Deploy Agent, and MSBuild MSDeploy for deployment. Now it is deployed with this set of arguments in MSBuild:
/p:DeployOnBuild=True
/p:DeployTarget=MsDeployPublish
/p:MSDeployServiceURL=example.com
/p:DeployIISAppPath=example.com/DeploySiteName
/p:CreatePackageOnPublish=True
/p:MsDeployPublishMethod=RemoteAgent
/p:AllowUntrustedCertificated=True
/p:UserName=login
/p:Password=pw
In doing so, it will be deployed to C:\Inetpub\wwwroot\wss\VirtualDirectories\example.com80where the website files are located.
Unfortunately, I need to deploy it to D:\Webs, mainly for space reasons.
I'm trying to figure out which switch, if any, will allow me to deploy to an alternative physical path and display the virtual directory.
I tried reverse engineering C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets, as suggested by another SO post, but I failed ... I tried using combinations of these parameters, and they had no visible effect:
/p:DeployIisAppPhysicalPath=D:\Webs
/p:RemoteSitePhysicalPath=D:\Webs
Any suggestions?