MsDeploy同步无法正常工作 [英] MsDeploy Sync not working

查看:103
本文介绍了MsDeploy同步无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的sql项目构建为dacpac,并且依赖于master.dacpacdacpac包含在网站内容中.

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

两个dacpac都通过filePath提供程序包含在软件包中. 我可以看到包装中包含dacpac的内容.

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

但是,在目标目录上,master.dacpac已正确同步(已删除,然后从程序包中添加).但是应用程序dacpac没有被同步(实际上,该程序包先添加然后删除,从而有效地从目标中删除了文件).

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.

推荐答案

基于上述问题下的评论,我相信您的问题是您正在将DacPacs同步到网站根目录.该网站的文件列表中没有这些文件,因此它尝试在每次同步通过时删除这些文件.

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.

尝试将DacPacs同步到不属于Web应用程序路径的其他文件夹.

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

这也应该解决您的其他问题- MsDeploy同步已完成XX次通过

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

这篇关于MsDeploy同步无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆