XmlSerializer not using XmlSerializers.dll created by sgen

后端 未结 3 885
北海茫月
北海茫月 2021-01-18 06:23

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         


        
3条回答
  •  粉色の甜心
    2021-01-18 06:47

    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.

提交回复
热议问题