How to use this method?
I am creating an assembly in runtime using Thread.GetDomain().DefineDynamicAssembly…
I want to know how can I load this assembly created in runtime in an existing assembly defined in design time.
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.
From your question it sounds like your are trying to load a dynamically created
Assemblyinto anAssemblywhich is defined on disk by the developer. Is that correct?If so this is simply not possible. Assemblies once defined are effectively immutable. Their type information can’t change at run time. Modules can’t be pushed into them afterwards.
Can you give us a bit more detail on what you’re trying to achieve here? Perhaps there is another solution.