I want to rename different config files into web.config,
Here is my rule of renaming qa.config into web.config
<rule name="MYQA" enabled="false"
type="Microsoft.Web.Deployment.DeploymentReplaceRule" isDefault="true"
objectName="filepath" targetAttributename="path"
match="qa.config" replace="web.config"/>
<rule name="MYPROD" enabled="false"
type="Microsoft.Web.Deployment.DeploymentReplaceRule" isDefault="true"
objectName="filepath" targetAttributename="path"
match="prod.config" replace="web.config"/>
Here is my command
MSDeploy.exe -verb:sync -source:contentPath=C:\1abc -dest:contentPath=C:\2abc -enablerule:MYQA
I am puzzuled by the result.
When I run the command for the first time, all files are copied, but MYQA rule doesn't trigger
If I run the command again, then rules kicks in.
Is there anything I did wrong?
Thanks