The CodeDOM does not support adding Comments to a
WiX file.
However not a key scenario when creating WiX files,
being able to roundtrip comments when modifying WiX
files using the CodeDOM is an absolute requirement.
This isn't something I'm interested in supporting. If someone
else wants to pick this up, that would be fine with me, but it's
completely outside the scenarios the CodeDom was created
for.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Seems like more of a feature request. It also doesn't seem
like the CodeDOM should support comments. It exists to
represent the schema of WiX itself - comments exist outside
of that domain.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On the other hands, comments are part of a valid WiX XML
file. I still think that it would be a great enhancement if
you have the tools available to programatically read and
write (roundtrip) valid WiX XML files; as such, comments
are indeed required.
Think of this as potentially useful for tools such as
editors.
You may as well consider adding a XmlNode child element as
supported to any WiX element that supports child elements,
this way, you add support for code comments, CDATA and any
other valid XML element (think extensions here). And, that
way you don't have to care about it any more.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1011559
This isn't something I'm interested in supporting. If someone
else wants to pick this up, that would be fine with me, but it's
completely outside the scenarios the CodeDom was created
for.
Logged In: YES
user_id=518766
Seems like more of a feature request. It also doesn't seem
like the CodeDOM should support comments. It exists to
represent the schema of WiX itself - comments exist outside
of that domain.
Logged In: YES
user_id=1149415
On the other hands, comments are part of a valid WiX XML
file. I still think that it would be a great enhancement if
you have the tools available to programatically read and
write (roundtrip) valid WiX XML files; as such, comments
are indeed required.
Think of this as potentially useful for tools such as
editors.
You may as well consider adding a XmlNode child element as
supported to any WiX element that supports child elements,
this way, you add support for code comments, CDATA and any
other valid XML element (think extensions here). And, that
way you don't have to care about it any more.