Probblem with refrencing DLLs
-
Hi all, I have created a simple plugin manager (I got some ideas from: http://www.codeproject.com/csharp/PluginsInCSharp.asp) So when I compile I get 3 dll's: PluginManager.dll :: this one contains all the code for loading and storing the plugins IPlugin.dll :: interface which plugin's must implement in order to work IPluginHost.dll :: this one contains one interface, and this dll must be made for every project, as there are programm speciffic method in it (see article). The PluginManager.dll refrences IPlugin and IPluginHost, and the IPlugin refrences IPLuginHost. And I would liek to make things easier for use, so you would only have to compile IPluginHost.dll if you would liek to expose some methods to plugins. So how can I make that the PluginManager.dll and IPlugin.dll will refrence the IPluginHost.dll at run-time, knowing that the DLL wil always have the name IPluginHost.dll and that it will be in the same irectory. If I could do this, then I could just refrence PluginManager.dll and IPlugin.dll in my project copy them in my app dir, make a IPluginHost.dll compile it put-it into my app dir and the other two would use it. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!
-
Hi all, I have created a simple plugin manager (I got some ideas from: http://www.codeproject.com/csharp/PluginsInCSharp.asp) So when I compile I get 3 dll's: PluginManager.dll :: this one contains all the code for loading and storing the plugins IPlugin.dll :: interface which plugin's must implement in order to work IPluginHost.dll :: this one contains one interface, and this dll must be made for every project, as there are programm speciffic method in it (see article). The PluginManager.dll refrences IPlugin and IPluginHost, and the IPlugin refrences IPLuginHost. And I would liek to make things easier for use, so you would only have to compile IPluginHost.dll if you would liek to expose some methods to plugins. So how can I make that the PluginManager.dll and IPlugin.dll will refrence the IPluginHost.dll at run-time, knowing that the DLL wil always have the name IPluginHost.dll and that it will be in the same irectory. If I could do this, then I could just refrence PluginManager.dll and IPlugin.dll in my project copy them in my app dir, make a IPluginHost.dll compile it put-it into my app dir and the other two would use it. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!
First, read How the Runtime Locates Assemblies[^] in the .NET Framework SDK. When developing your application, it makes it much easier if you make project references instead of assembly references for projects in your solution. So, when you right-click on your project that requires the dependencies in your solution, click Add Reference then select the Project tab. Add your project(s). This makes sure that your project is always up-to-date with the latest assemblies (since it sets up dependencies on the build order) and that whenever you switch between build configurations (like Debug and Release, which are created by default) that all the project assemblies are of that build.
Microsoft MVP, Visual C# My Articles
-
First, read How the Runtime Locates Assemblies[^] in the .NET Framework SDK. When developing your application, it makes it much easier if you make project references instead of assembly references for projects in your solution. So, when you right-click on your project that requires the dependencies in your solution, click Add Reference then select the Project tab. Add your project(s). This makes sure that your project is always up-to-date with the latest assemblies (since it sets up dependencies on the build order) and that whenever you switch between build configurations (like Debug and Release, which are created by default) that all the project assemblies are of that build.
Microsoft MVP, Visual C# My Articles