【发布时间】:2013-05-03 10:57:06
【问题描述】:
在将 contentPath 提供程序与包含清单的 MSDeploy 包一起使用时,我试图覆盖安装目录。
我确定我过去曾这样做过,但就是无法让它发挥作用。
我错过了什么?
用于创建包的清单:
<siteManifest>
<contentPath path="C:\packages" />
<runCommand path="do something here" />
</siteManifest>
安装包命令:
这直接来自文档here。
msdeploy -verb:sync
-source:package=deploy.zip
-dest:auto
-replace:objectName=contentPath,
targetAttributeName=path,
replace=C:\otherPath
更新
发现这对文件有效,但对目录仍然没有乐趣。
msdeploy -verb:sync
-source:package=deploy.zip
-dest:auto
-replace:objectName=filePath,
targetAttributeName=path,
match=somefile\.txt
replace=newfile.txt
【问题讨论】:
标签: replace msdeploy webdeploy