Csla.XmlSerializers.dll and Csla.config

Csla.XmlSerializers.dll and Csla.config

Old forum URL: forums.lhotka.net/forums/t/856.aspx


William posted on Wednesday, August 09, 2006

Hi,

I am starting to use CSLA 2.0 for my project. When I compiled CSLA source code, the Release build generated an additional file Csla.XmlSerializers.dll, which is not available in Debug build. May I know what is this file use for?

And, there is Csla.config, what is this file use for?

Thanks.

Regards,
William

 

RockfordLhotka replied on Wednesday, August 09, 2006

The XmlSerializer dynamically creates a class to serialize/deserialize each type you have it serialize. It does this by reflecting against your type, code-genning a class and compiling it in memory. That can be slow. To optimize this, Microsoft is now pre-building these dynamic classes in release builds, thus avoiding some overhead at runtime.

The Csla project has an app.config file. In .NET 2.0 DLLs can now have config files, and Csla.config is that file. You really don't need it, as you'll typically set any options in your real app.config or web.config. You can use this as a guide in some ways I suppose, but really you can just discard it.

William replied on Wednesday, August 09, 2006

Thanks Rocky for your response.

Do I need to distribute this Csla.XmlSerializers.dll together with my application?

Regards,
William

 

RockfordLhotka replied on Wednesday, August 09, 2006

If you want to get the runtime performance boost yes. However, the only use of the XmlSerializer in CSLA is in the Web Services data portal proxy, so it is only needed if you use that particular data portal channel.
 
Rocky

Thanks Rocky for your response.

Do I need to distribute this Csla.XmlSerializers.dll together with my application?

Copyright (c) Marimer LLC