Parsing the MSDeploy Argument from MSBuild

I just started playing with TeamCity and great. Now I got it for deployment on my intermediate server after commit, so I always know that I have the latest version installed. (The idea was taken from: http://www.agileatwork.com/automatic-deployment-from-teamcity-using-webdeploy/ )

But since the site generates some files that I don’t want to destroy every time I publish, I found a parameter for MSDeploy

-enableRule:DoNotDeleteRule

But how to add this to the MSBuild team

MSBuild.exe MvcApplication1.sln 
 /p:Configuration=Debug 
 /p:OutputPath=bin 
 /p:DeployOnBuild=True 
 /p:DeployTarget=MSDeployPublish 
 /p:MsDeployServiceUrl=https://ss-iis:8172/MSDeploy.axd 
 /p:username=user
 /p:password=pass
 /p:AllowUntrustedCertificate=True 
 /p:DeployIisAppPath=foo.bar.tld 
 /p:MSDeployPublishMethod=WMSVC 

Can this be done?

Or is there a more convenient way to automatically deploy TeamCity web applications?

+3
source share
1 answer

It may be /p:SkipExtraFilesOnServer=truethat you want.

+10

All Articles