Key value pairs

Hello,

We are using finalbuilder to create deployments for several targets (development, test, production). We have a custom configuration for each configuration, and we solve that by using a custom ini file with the same keys for each configuration.

However, I have now come to the point where I don't want to update finalbuilder everytime a new setting is added. This is my workflow at the moment:

1) Add customized setting to all configurations ini files

2) Update finalbuilder to read the new ini value

3) Update finalbuilder action list called "Replace web.config" settings wit the new key

 

What is the recommended way to read a file with key/value pairs and use the key as value to be replaced, and the value as value to replace it with? Then I only have to update the ini files, not finalbuilder itself.

Hi Geert

You could use the IniFile Iterator action to iterate through the settings and build up a list. Unfortunately at the moment we don’t really have an ideal data structure that can be used for key/value pairs, so the key& value would need to be stored together and split when using them.

Ok, works like a charm. Thanks for the hints.