When CodeRush.Language.GenerateXmlCode() is called, it's expanding elements with no children. XML items normally end with "/>" when they have no children, expecially if they're XmlAttribute items. The attached simple plugin shows the issue. Run it, stick your caret in the XML comment above the PreparePreivew and choose 'Example' for the refactor. In the preview window you'll see that the <see> tag is modified.
Steps to Reproduce:
Get an XmlDocComment and run it through the generate routine.
Actual Results:
Things like "<see cref="foo" />" are being turned into "<see cref="foo"></see>"
Expected Results:
Leave it as: <see cref="foo" />
We have closed this ticket because another page addresses its subject:
CodeGen - Add options to specify code generation rules
Hi Scott,
Thank you for the report, and for providing the sample plug-in.
This is a limitation of our current CodeGen engine: right now it is impossible to select how a certain element should be generated. We're aware of this problem, and are planning to address it in the context of the following suggestion:
ID: S19229, CodeGen - Add options to specify code generation rules
I've added the corresponding note to this item.
Thanks,
Vito