App_Offline in MSBuild Remote Web Deploy

后端 未结 2 1928
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-15 04:40

I have the following task in my MSBuild script to deploy to a remote server using Web Deploy (MSDeploy service):

  
    

        
2条回答
  •  隐瞒了意图╮
    2020-12-15 05:18

    This is now supported by WebDeploy v3.0.. all you need to do is add this line into your publish profile in 'Properties\PublishProfiles'

    true
    

    So the resulting publish profile will look something like the following.

    
    
      
        true
        MSDeploy
        (removed)
        Default Web Site
        True
        True
        False
        WMSVC
        sayedha
        False
        <_SavePWD>True
      
    
    

    I have tested this and it does take my application offline during deployment, but unfortunately I still occasionally get the 'PrecompiledApp.config is in used' error.

    More information about this can be found here: http://blogs.msdn.com/b/webdev/archive/2013/10/30/web-publishing-updates-for-app-offline-and-usechecksum.aspx

提交回复
热议问题