Hi there,
Are there a possibility to read an app.config with finalbuilder?
Here my app.config:
<?xml version="1.0" encoding="utf-8" ?>
<ch.zeitag.build.finalbuilder.version.properties.settings>
C:\Programme\FinalBuilder 5\Finalbuilder5.exe
D:\System7\Source\Install\FinalBuilder\MainScripts\Sys7Main.fbp5
D:\System7\Source\System7
System7
$/Source/System7
</ch.zeitag.build.finalbuilder.version.properties.settings>
I want read the add key=“blabla” values. Is there a possibility to read this values?
Thanks a lot.
pro
You mean Visual Studio’s app.config files? Those are standard XML files, so you can read it with the XML actions, i.e. “Read XML Value to Variable”.
Hi Robert,
Ups - in my message there are no app.config?!?
Now I has posted it as screenshot…
Yes, I mean VS.NET App.config Files…
How can I read it with this action a value of an add key=“blalba”?
I don’t know what I must write in XPath to Node.
Thanks a lot for your help…
If you want to read the values of each key of appSettings sections you can use the “XML Node Iterator” action:
The XPath to iterate over should be “/configuration/appSettings/app”. Next you’ll have to select “Set variable to the value of an attribute” and name the attribute (“value”).
If you want to extract only a specific value of a given key you can use the “Read XML Value to Variable” action:
The XPath to the Node should be something like “/configuration/appSettings/add[@key=“BuildMain”]” (for the add node with the “BuildMain” key value). Then select “Read an attribute of the XPath Node” and name the attribute “value”.
Hi Robert,
Thanks a lot. Now I can read values with Finalbuilder from my app.config
Regards,
Patrick
Hi Patrick!
You're welcome.
Robert