Hi ,
I am in a need to add dll's dynamically to the References of Solution Explorer in the application(VS 2008) based on user's selection.How can I proceed with this requirement.
Any pointers to this would be of great help.
Hi ,
I am in a need to add dll's dynamically to the References of Solution Explorer in the application(VS 2008) based on user's selection.How can I proceed with this requirement.
Any pointers to this would be of great help.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
chinnasamy44 reputationPosted Jan 7, 2009, 2:39 AM EST
Assembly.LoadFrom() - to load the DLL , will Return a Assembly Object,
In Assembly Object we have a method called GetTypes(), this will return different Classes inside,
By using GetTypes(), we may get the classes resides in the DLL in the form of Type, Using any particular type object, we can retrive any methods to start new application, Type object have got a method called GetMethod() , which will return a pointer to the method, means, will return MethodInfo object, by using this MethodInfo object, we can Invoke any particular method to start own/new main thread for a specific DLL, from that method onwards your New Main Thread will be started.
MethodInfo object have got Invoke() method to run any specific method inside that DLL.