Open macro187 opened 6 years ago
I think this might be possible by internally re-running the .exe in a new AppDomain
with the ConfigurationFile
set to the location of the custom config file.
https://docs.microsoft.com/en-us/dotnet/api/system.appdomain https://docs.microsoft.com/en-us/dotnet/api/system.appdomain.executeassembly
Next step might be building a test for this problem, and running it against the Microsoft runner(s) to confirm whether they can do it or not.
Old Conclusion: This question has been asked on Stack Overflow. There are no answers, and the comments (so far) suggest it's impossible: https://stackoverflow.com/questions/41144115/use-binding-redirects-from-custom-config-file
If not, can it be improved?