xmlpreprocess-users Mailing List for XmlPreprocess
Status: Beta
Brought to you by:
lorenh
You can subscribe to this list here.
| 2005 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: Loren H. <lor...@ho...> - 2005-01-21 03:54:53
|
Multiple properties should be able to be passed like this (the colons are
optional)
XmlPreprocess.exe /i web.config /d:property1=value1 /d:property2=value2
Here's a test I just ran:
---web.config---
<xml>
<!-- ifdef ${_xml_preprocess} -->
<!--
<entry foo1="${property1}"/>
<entry foo2="${property2}"/>
<entry foo3="${property3}"/>
<entry foo4="${property4}"/>
-->
<!-- endif -->
</xml>
All of the below worked
XmlPreprocess.exe /c /i web.config /o out.xml /d property1=1 /d property2=2
/d property3=3 /d property4=4
XmlPreprocess.exe /c /i web.config /o out.xml /d:property1=1 /d:property2=2
/d:property3=3 /d:property4=4
XmlPreprocess.exe /c /i web.config /o out.xml /d:property1="value with
spaces" /d:property2=2 /d:property3=3 /d:property4=4
Hope this helps.
--Loren
________________________________
From: jwatson
Hi Loren,
I love your XmlPreprocess and have used id from a command line successfully.
I'm trying to integrate with an MSI installer. I keep getting an object
reference not found error during preprocess. Here is my CustomActionData
line:
/i="[TARGETDIR]BSI.CWS.Listener binding.xml" /d:FDPATH="[FDPATH]"
Could you please help me with the correct syntax to pass multiple /d:
properties?
Thank You!!
|