When does csc compiler kick in during application execution? RRS feed

  • Question

  • Hi All,

    In my application when I am executing a import of a xml file I see the csc complier coming on and going in the TaskManager. I have a few queries regarding this:

    1. When does csc complier kick in? Is it only when XmlSerializer is used?

    2. How do I minimize csc compiler occurances?

    3. How do I track which code is triggering a csc execution?

    4. How do I measure the performance hit due to csc execution?


    Please help.


    Thanks & regards


    Monday, March 24, 2008 1:42 PM


  • Yes, it is used by XmlSerializer.  There are other cases where it could be used as well, but XmlSerializer is the most common cause.


    You can eliminate it entirely by using the sgen (XML Serializer Generator) tool to do this compilation up front instead of at runtime.





    Monday, March 24, 2008 3:48 PM