Is there a way (an API function) to set the C# assembly lookup path after starting CLR Host, so that, ExecuteInDefaultAppDomain() function find it?
thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Seems there are only two ways to specify an assembly’s locations.
Unfortunately, none of them works for this case. Thereby, having the possible lists of assembly’s directories and the name of the assembly, one needs to locate the file manually and then pass the full path to ExecuteInDefaultAppDomain() function.
However, I still do not understand why such capability is not provided in CLR api (or maybe it is, but not properly documented).