I\'m trying to make application with plugins.
I have MainLib.dll, where I made some commnon interface(let it be ICommon
) with 1 method. Then, I made 2 .dlls
You may want to tell the domain where to load your assemblies from:
AppDomain domain = AppDomain.CreateDomain("tmpDomain", null, new AppDomainSetup { ApplicationBase = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Plugins") });
However, I don't see why you are loading assemblies in current (default) domain and also the tmpDomain.