Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there a way to reference DLLs dynamically in console applications?

I want to change my mysql.data [i.e mysql connector] reference dynamically in console applications.As we have many applications eachtime we can not rebuild applications with new .net mysql connector.

So pls suggest a way to get rid of this.
Posted

Reflection should allow you to achieve this.
A very nice and easy guide here[^].
 
Share this answer
 
Comments
Mohammad A Rahman 6-Aug-11 3:21am    
What is the difference between Solution 1 and Solution 3? Just wondering would you achieve what Surender.m wants? Please see his comments on Solution 1. :)
walterhevedeich 6-Aug-11 5:02am    
I agree. My 5.
Abhinav S 6-Aug-11 5:04am    
Thanks.
 
Share this answer
 
Comments
Abhinav S 6-Aug-11 3:07am    
We can simply load the dll using reflection - so why go for Dependency Injection (for which we will need to use third party support)?
Mohammad A Rahman 6-Aug-11 3:26am    
Yes it is achievable by Reflection, I agree. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900