I have a .NET application that creates several separate AppDomains to run some plug-in code, each of the AppDomains sets up its own WCF service named pipe to communicate with the central application.
However, I want to set a different working directory for each AppDomain, so the base folder of any relative path is different in each application domain. Thus, these plugins can create their own folder structure in all normal file processing modes by going to "./MyCustomFolder".
Unfortunately, I find Directory.SetWorkingDirectory () sets it for the whole process (not isolated from one application domain), this causes some plugins to be written to other plugin directories.
Is it possible to change the working directory for different AppDomains applications, or do I need to start new processes to do what I need? If I need whole processes to do what Im after what you think about how to effectively manage parent / child processes stably?
source share