AppDomain.CurrentDomain.AppendPrivatePath("plugins");
For some security reasons this method has been set obsolete and should not be used anymore. I found much posts on the internet regarding this issue but almost every post demonstrated how to create a new AppDomain using the AppDomainSetup where the PrivateBinPath can be set easily.Well I don't want to create a new AppDomain but use the default AppDomain and append a private path. Today I found a solution to this problem which can be solved easily through the application configuration file.
<configuration>
<!-- ... -->
<runtime>
<assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatepath="plugins;otherFolder;more"></probing>
</assemblybinding>
</runtime>
<!-- ... -->
</configuration>