runCommand provider in msdeploy's Manifest.xml file

此生再无相见时 提交于 2019-12-06 06:51:33

MsDeploy also has an auto provider which deploys the content of the package. So you will have to change your commandline to be

"C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe" -verb:sync -source:package="package" -dest:auto -setParam:name=bunch of parameters... -debug -verbose > MsDeployOutput.txt

Also, if you want your manifest to kick in, you need to modify your commandline as

"C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe" -verb:sync -source:package="package" -dest:manifest="manifestLocation" -setParam:name=bunch of parameters... -debug -verbose > MsDeployOutput.txt

and MsDeploy will do its magic.

Thanks,

There is a bug in runCommand provider. To workaround it, use this attribute MSDeploy.MSDeployKeyAttributeName="path"

Like this: <runCommand path="(call to batch script here)" MSDeploy.MSDeployKeyAttributeName="path" />

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