I just read this answer and I started wondering. Let's say, I have multi-project solution (with many executable clients). Every client would have App.config as normal, but without WCF part. Without system.serviceModel
section.
In separate Class Library I would have App.config where I would put system.serviceModel
section ONLY. So when I run client with that Class Library as reference, VS will somehow inject config from Class Library into Client (let's say WinForms).
That way, I will separate WCF stuff completely. WinForms Client will only have reference to Library Class and that's it.
So, is it possible to inject one config file to another config file?