This question seems to be a common one but I'm still struggling to find a correct solution. I'm not sure whether its doable or not.Could some one help me please!
I have a .net winform application (TestApp) which holds a reference to a dll called MyDll. This MyDll inturn inherits classes from a 3rd party dll(xyz).
SendMsg send = New SendMsg();
Here SendMsg is a MyDll class which inherits ne_SendMessage class of the 3rd party dll. I'm trying to create an instance for SendMsg class in TestApp.
Now my scenario is, I should not add direct reference to the 3rd party dll(XYZ) into my application TestApp because XYZ.dll gets updated often. If i remove its reference, Im getting an error "the type XYZ.class is defined in an assembly which is not referenced.You must add a reference to assembly XYZ".
Is it possible to overcome this error by adding the XYZ.dll dynamically using reflection? If yes how can i do it?
Incase my question is unclear please leave your comments. Thanks in advance!