I updated the XmlPrecompiler tool on my website. It is an enhancement to the version I posted in my blog a couple of weeks ago. http://weblogs.asp.net/mnolton/archive/2004/12/01/273027.aspx
It is available for free download. For those who haven't used it before, I put a user interface on top of a tool Chris Sells wrote called XmlSerializerPreCompiler.Exe and you can download it here:
The tool solves the xml serialization problem when you get those nasty serialization messages that really don't tell you anything. Like "File or assembly name ctewkx4b.dll, or one of its dependencies, was not found". This tool checks to see if a type can be serialized by the XmlSerializer class and if it can't, it shows the compiler errors happening behind the scenes.
The updates I made to the tool are as follows:
- If the application gets a ReflectionLoadTypeException, the application will spin through the inner LoaderExceptions in order to give a more detailed reason as to why a problem occurred.
- Added the ability to view assemblies referenced by the selected assembly.
- Sorting. Ward Bekker suggested sorting and it was a good idea. I also now display all types regardless. I used to only show classes. I also added a column that will display what it is (e.g. class, enum, interface, etc.) and I let you sort on this as well.