In my Visual Studio 2010 project, I use following Post-Build event command line to use sgen to create XmlSerializers.dll.
Post build event:
\"$(Pro
Have you tried running ngen.exe on the generated dll?
Running
ngen.exe install myproject.XmlSerializers.dll
will install a native image of the dll in the image cache, which should be used at runtime rather than invoking the JIT compiler.