0

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.

1 Answer 1

2

This is not possible with the parameterization which exists in MSDeploy today. You will need to create a placeholder connection string inside of your web.config so that you can parameterize the value for it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.