Hey people,
I did read about the descriptors in linker, but I need to tell to
Linker that a type don't be removed in the linker process.
When I do this:
:>monolinker -a mono.sms.exe -x Castle.Windsor.xml -out linkedfiles/
and the Castle.Windsor.xml it's like this:
<?xml version="1.0" encoding="utf-8" ?>
<linker>
<assembly fullname="Castle.Windsor">
<type
fullname="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler"
/>
</assembly>
</linker>
The result linker file Castle.Windsor.dll, have just the type
CastleSectionHandler.
I need that type don't be removed, but I need the rest of the types
needed for mono.sms.exe application.
How do I do this?
Thank you guys !
On 6/13/07, Jb Evain <[EMAIL PROTECTED]> wrote:
>
> Hey,
>
> On 6/13/07, Dario Quintana <[EMAIL PROTECTED]> wrote:
> > But now I'm seeing and the Castle.Windsor assembly loose the type
> > CastleSectionHandler after linking :s
> >
> > Some tip to prevent this ?
>
> Well, if this type is removed it's probably because it is not used.
> It's the goal of the linker after all.
>
> If it is removed, and that it's referenced by an assembly, then you're
> maybe seeing a bug in the linker, so you may want to send me your
> assemblies so I can diagnose what's wrong.
>
> If it's not referenced, but you still want to preserve this particular
> type, you may want to use an xml descriptor to preserve the type. You
> can find an example in linker/Descriptors.
>
> Jb
>
> --
> Jb
>
> >
>
--
Dario Quintana
http://blog.darioquintana.com.ar
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---