Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-08-2016, 03:02 PM
paxil paxil is online now
Registered User
 
Join Date: 03-18-2014
Location: Richmond, VA
Posts: 12
Modifying a configuration file prior to deployment

I have a xml config file that I want to modify with many different macros (40+) in this format when it comes out of source control. I have a macro for each of the values. I know I can add a "Replace in File" build step for each value to be replaced with my macros, but is there an easier way to do this without having to run the replace file 40+ times?

<ConfigurationSettings>

<Setting name="AdminEmail" value="$(AdminEmail)" />
<Setting name="AdminFirstName" value="$(AdminFirstName)" />
<Setting name="AdminLastName" value="$(AdminLastName)" />

</ConfigurationSettings>

Thanks

Pax


Forgot to mention, I'm using v8.6 of VBP. Also, can this issue above be completed with a LOOP_VALUE within a LOOP_VALUE?

Last edited by paxil; 01-08-2016 at 03:32 PM. Reason: Adding details
Reply With Quote
  #2  
Old 01-08-2016, 03:57 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
You can perform multiple replacements in one Replace in File action. See the examples at http://www.kinook.com/VisBuildPro/Ma...acetexttab.htm

Alternatively, you could put the replace step in a loop to process all the relevant macros.
http://www.kinook.com/VisBuildPro/Manual/loopaction.htm
Reply With Quote
  #3  
Old 01-08-2016, 04:40 PM
paxil paxil is online now
Registered User
 
Join Date: 03-18-2014
Location: Richmond, VA
Posts: 12
Thanks for getting back so quick, that worked perfect.
Pax
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 08:47 PM.


Copyright © 1999-2023 Kinook Software, Inc.