"Substitute variables in files" - how to use wildcards

I have “Substitute variables in files” enabled for one build step and the goal is to substitute Octopus style variables #{} in ALL Web.config files found in all subfolders. How do I specify the wildcard so that it scans subfolders? I have tried **\Web.config which worked in other places, but in this place I could not make it work. Advice?

Thank you!
Konstantin

Hi Konstantine,

Thanks for getting in touch! I can see how that would be useful for certain types of web applications hosted in ASP.NET where you want location-specific config files.

We have a UserVoice suggestion for this exact behaviour: https://octopusdeploy.uservoice.com/forums/170787-general/suggestions/6261527-allow-for-wildcard-directory-searching-for-substit

I’d recommend voting for that suggestion and drumming up some support behind it. While it might seem like a “no-brainer” suggestion, one reason we haven’t done it already is because it could end up causing serious performance problems when someone misconfigures the search pattern.

Hope that helps!
Mike