Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 663

Wdeploy v3 Parameterization XMLFile

$
0
0

Hello, 

I am trying to take advantage of this new feature to give an XML parameter a Default Value from another xml file (in the package being deployed). 
 
I understood that the DefaultValue path is a relative path to wherever Web Deploy is running on the destination.
And indeed, if I take this example : 

<parameters><parameter name="MyTestParam" description="Test Param" defaultValue="\default.config:://add[@key='test']"><parameterEntry kind="XmlFile" scope="web\.config" match="//add[@key='test']" /></parameter></parameters>

http://forums.iis.net/t/1192891.aspx/1

it works if default.config is located at the root folder of the destination (c:\).

I still don't understand how to get the default value from a file in a package being deployed as shown in this example:

<parametername="Replacement Param"defaultValue="\web.config:://connectionStrings"><parameterEntrykind="XMLFILE"scope="web\.config$"match="//connectionStrings"/></parameter>

http://www.iis.net/learn/publish/using-web-deploy/parameterization-improvements-in-web-deploy-v3#author-info
<div></div> <div>What path should be given to the DefaultValue to point to the package itself?</div> <div>Any help would be greatly appreciated</div>

Bri



Viewing all articles
Browse latest Browse all 663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>