I have a number of web applications in the suite. I use Web Deploy to publish deployment packages that I create using Visual Studio. The SetParameters.xml file is supplied with these packages, which you can use to change the values ββin web.config. Several values ββare executed automatically, for example, connection strings, but you can add the parameters.xml file to the project to specify values ββthat should be parameterizable:
<?xml version="1.0" encoding="utf-8" ?> <parameters> <parameter name="Sharepoint service principal name" description="The principal name of the Sharepoint service." defaultValue="host/108.125.111.137"> <parameterEntry kind="XmlFile" scope="\\Web\.config$" match="/configuration/system.serviceModel/client/endpoint/identity/servicePrincipalName/@value"/> </parameter> </parameters>
My question is: if all my web applications have an application parameter in web.config with the same key and value that I want to change during deployment, how can I avoid duplicating a specific parameter in each parameters.xml file? Is there a way to place this tag in one place and use each options.xml parameter in a common location?
source share