How to use anonymous functions in configuration files?

I’ve tested it with releases (using Distillery) and it doesn’t work, which means you cannot use anonymous functions if you use releases at some point.

See also this discussion: Anonymous functions in config: why does it work?