locked
Web Application Publishing - Don't Delete Existing Files RRS feed

  • Question

  • Hi,

    When publishing a web application via visual studio, I get to select the publishing profile and choose to either "Replace matching files with local copies" or "Delete all existing files prior to publish".  

    When publishing using a Team Build all files are getting deleted.  Is there a way I can get the same functionality as selecting "Replace matching files with local copies" in the IDE?

    The MSBuild parameters I am using are:

    /p:DeployOnBuild=True /p:MSDeployServiceURL="SERVER" /p:MSDeployPublishMethod=RemoteAgent /p:CreatePackageOnPublish=True /p:DeployTarget=MsDeployPublish /p:username=USER /p:password="PASSWORD"

    Thanks..

    Friday, June 25, 2010 3:49 PM

Answers

  • Ah, shame.  I've modified the build work flow to do an xcopy from _PublishedWebsites instead.

     

    Thanks.

    Thursday, July 1, 2010 12:05 PM

All replies

  • Lots of views but no replies... does anyone know of somewhere else this question might be better suited for?
    Monday, June 28, 2010 4:13 PM
  • Hi,

    The "Replace matching files with local copies" or "Delete all existing files prior to publish" is controlled by IDE instead of MSBuild.

    In my investigation into Microsoft.Web.Publishing.targets, it doesn't support such feature. The clean published website operation will be performed whenever executing project clean target.


    Hongye Sun [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    See what's happening in MSDN forum? Follow us at Twitter.
    Tuesday, June 29, 2010 4:12 AM
    Moderator
  • Ah, shame.  I've modified the build work flow to do an xcopy from _PublishedWebsites instead.

     

    Thanks.

    Thursday, July 1, 2010 12:05 PM