My publish.xml file, which works for publishing from Visual Studio 2010, looks like this:
<?xml version="1.0" encoding="utf-8"?><publishData><publishProfile publishUrl="https://server.company.com:8172/msdeploy.axd" deleteExistingFiles="False" ftpAnonymousLogin="False" ftpPassiveMode="True" msdeploySite="Default Web Site/myservice" msdeploySiteID="" msdeployRemoteSitePhysicalPath="" msdeployAllowUntrustedCertificate="True" msdeploySkipExtraFilesOnServer="True" msdeployMarkAsApp="False" profileName="Profile1" publishMethod="MSDeploy" replaceMatchingFiles="True" userName="domain\me" savePWD="True" userPWD="notMyPassword" SelectedForPublish="True" /></publishData>
I tried putting these parameters in to the MSBuild Arguments with /p: for each parameter that I could find.
/p:DeployOnBuild=true /p:DeployTarget=MSDeployPublish /p:MSDeployPublishMethod=WMSVC /p:MSDeployPublishMethod="https://server.company.com:8172/msdeploy.axd" /p:AllowUntrustedCertificate=true /p:DeployIISAppPath="Default Web Site/myservice" /p:Username=domain\me /p:Password=notMyPassword
However I'm getting the following errors:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3650): Web Deploy publish/package validating error: Missing or Invalid property value for $(MsDeployServiceUrl)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3684): The "NormalizeServiceUrl" task was not given a value for the required parameter "ServiceUrl".
There are three different WCF service projects in the solution which I would like to publish.