I am using msdeploy to sync IIS on remote machine. Till now I needed to replace default connection string with required one and I was able to use parameter.xml
"C:\program files\IIS\Microsoft Web Deploy V2\msdeploy.exe" -verb:sync -source:iisApp="$(BuildLocation)" -dest:iisApp="MySite",computerName=ServerName -setParamFile="MYSiteParameters.xml"
<parameter name = "Name" defaultValue="ConnectionString">
<parameterEntry kind="XmlFile" scope="Web\.config$" match="/configuration/connectionStrings/add[@name='Name']/@connectionString" />
</parameter>
This was successfully replacing the existing connection string.
Now I want to add another connection string, an extra one which is not available in source file. Is this possible with msdeploy?
Thanks.