You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An additional optional property in the JSON config could be added for a search string. If it exists, then only that search string gets replaced with the string specified in Value instead of the whole attribute. Valid values in ReplaceSearchString are anything the powershell -replace method can support, which includes regex. See below for example:
{
"KeyName": "/configuration/appSettings/add[@key='API_URL']",
"Attribute":"value",
"Value":":ApiPort",
"ReplaceSearchString":":[0-9]+"
}
The text was updated successfully, but these errors were encountered:
I have a scenario with multiple WCF endpoints in a config. The first half is the base URL, which is always the same. The second half is a unique string per endpoint. I don't want to make a transform JSON for each endpoint (at least 6 of them).
An additional optional property in the JSON config could be added for a search string. If it exists, then only that search string gets replaced with the string specified in Value instead of the whole attribute. Valid values in ReplaceSearchString are anything the powershell -replace method can support, which includes regex. See below for example:
{
"KeyName": "/configuration/appSettings/add[@key='API_URL']",
"Attribute":"value",
"Value":":ApiPort",
"ReplaceSearchString":":[0-9]+"
}
The text was updated successfully, but these errors were encountered: