Let’s say that I do ilmerge on assembly1 and assembly2.
Can I use Assembly.GetExecutingAssembly.GetTypes() from assembly1 to find a type in assembly2 when running the merged assembly?
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.
Since the types are now contained in a new assembly which has been rewritten the executing (assembly of the declaring type) is the new assembly.
If you try to run the code you should see that it works fine.