macro187 / testrunner

A console MSTest runner
MIT License
20 stars 11 forks source link

Research whether it's possible for assembly redirects in switched config files to work #14

Open macro187 opened 6 years ago

macro187 commented 6 years ago

If not, can it be improved?

macro187 commented 5 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