You can just import the type/etc that you want to use and Cecil will take
care of it.
AssemblyDefinition FolderSize = AssemblyFactory.GetAssembly("FolderSize.exe"
);
FolderSize.MainModule.Import(type.....);
hth
On 7/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
> I have an assembly FolderSize.exe. I would like to add a reference to
> this assembly (after compilation), for example
>
> *******
> using System.IO;
> *******
>
> How can I do it with Mono.Cecil?
> Thank you.
> rca
>
>
> >
>
--
/Andrew
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---