Post

XmlSerializer

Today I stumbled across a post from Douglas Purdy that talked about diagnostic switches for the XmlSerializer.

Create an application configuration file with the following contents:

1
2
3
4
5
6
7
<configuration>
   <system.diagnostics>
      <switches>
         <add name="XmlSerialization.Compilation" value="1" />
      </switches>
   </system.diagnostics>
</configuration>

By doing this, you will have some files that are created and retained in your %TEMP% directory.

  • xxxx.cmdline – contains the command line used to compile the command
  • xxxx.0.cs and xxxx.out – contains the output of the compile command
  • xxxx.err – contains any error messages output by the command
  • xxxx.pdb – contains debugging symbols
This post is licensed under CC BY 4.0 by the author.