Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
macro187 opened this issue Apr 12, 2018 · 1 comment
Labels

Comments

@macro187
Copy link
Owner

If not, can it be improved?

@macro187
Copy link
Owner Author

macro187 commented Sep 17, 2018

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

@macro187 macro187 changed the title Investigate whether config file switching picks up assembly redirects Investigate whether it's possible for assembly redirects in switched config files to work Oct 18, 2018
@macro187 macro187 changed the title Investigate whether it's possible for assembly redirects in switched config files to work Research whether it's possible for assembly redirects in switched config files to work Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant