MsDeploy Sync not working

时光总嘲笑我的痴心妄想 提交于 2019-12-12 03:38:26

问题


We have our sql project build built as dacpac and has dependency on master.dacpac, the dacpac is included with the website content.

Both dacpac's are included in the package through filePath provider. I can see the package contains the dacpac's together.

On the target directory however, the master.dacpac is sync'ed correctly, (deleted and then added from package). But the application dacpac is not sync'ed (in fact, the package is added first and then deleted, effectively loosing the file from target).

All other files of website seems to be unpacking correctly.


回答1:


Based on the comments under the question above I believe your issue is you are syncing the DacPacs to the website root. The website doesn't have those files in its file list so it attempts to remove those files on each sync pass.

Try syncing the DacPacs to a different folder that's not part of the web app path.

This should also fix your other question - MsDeploy synchronization completed in XX pass(es)



来源:https://stackoverflow.com/questions/37751657/msdeploy-sync-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!