Bug: annotations are only emitted to C# when they are for XSD attributes, not for elements, types etc.

Jul 22, 2015 at 5:39 AM
See this gist: https://gist.github.com/jpluimers/4247df4e0aa01c1c190a

and this blog post: http://wiert.me/2015/07/22/example-of-xsd2code-only-handling-xsd-annotations-for-attributes-not-for-elements-types-and-other-places-where-they-can-be-used-in-an-xsd/

Example of xsd2code only handling xsd annotations for attributes, not for elements, types and other places where they can be used in an XSD.

Steps to reproduce:
  1. Install xsd2code and Visual Studio.
  2. Put all these files in one directory.
  3. Run generate-C#-from-XSD-annotations.bat.
  4. Diff annotations.xsd.exe.cs and annotations.xsd2code.exe.cs.
  5. Observe only 1 spot in annotations.xsd2code.exe.cs has the annotations converted to C# comments.