|
-
Feb 15th, 2012, 07:33 AM
#1
Thread Starter
Addicted Member
Referencing A Remote Assembly (Codebase? AssemblyBinding? ???)
Currently I have a need to reference a class library dll that is not located in the same directory as the exe nor its subdirectories. Can anyone point me in the right direction on this? Are there any good articles or tutorials on it? I have been looking through my .Net books and some go into details in a different direction and none that I have seem to cover it. To be honest, if there’s a nice tutorial or article on this topic with sample code to look at, that would be ideal at this point in my project (I’m literally presenting on it twice tomorrow).
I have to admit that I’m fairly ignorant of this topic, but it’s my understanding that I should be able to accomplish this using the assemblyBinding elements in the application configuration. If I do use a codebase approach with the app config, am I suppose to do something in the exe code to read the config and load? The class library that I’m refrencing… am I supposed to have any special methods or classes in it to make this work? I think I have more questions than answers.
If you want more of the nitty-gritty details on the current scenario, here it is:
I have an executable I’ve developed (we’ll call this myApp.exe). I also have a centralized data-accessing class library (we’ll call this appData.dll). This exe actually utilizes a framework I’ve designed to run from within a third-party company’s application. To ensure the myApp.exe is more maintainable and accessible, it will be located separately from the framework.dll and the appData.dll. The framework.dll will most likely reside in the same directory as the third-party exe, but separate from the appData.dll and myApp.exe. So I was considering applying the assemblyBinding elements in the application configuration files for the myApp.exe pointing toward the framework.dll and the appData.dll while that for the framework.dll will be pointing toward the appData.dll (this is why the data access library file is central between the two). My problem is that I don’t have a clue as to how this should work or be accomplished. Any help would be much appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|