[Mono-dev] how to use sgen ?

D Bera dbera.web at gmail.com
Sat Feb 9 19:52:40 EST 2008

  I am facing a chicken-and-egg problem while trying to use sgen :(

I have an assembly A.dll which creates serializers of some classes
included in it. I am trying to pre-generate the serializers using
sgen. But then I face this strange problem.

- sgen needs access to A.dll to generate the Serializer.dll
- Building A.dll needs access to GetSerializer (or whatever method in
the generated Serializer.dll that returns the right serializer) in

Any idea how to resolve this situation ? How are other projects using
sgen doing ? xgenplus resolves this by providing a FactoryCache class
- which has a static constructor, that loads all factories from the
*.Serializer.dll files; is it possible to something like that for sgen

- dBera

Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user

More information about the Mono-devel-list mailing list