I have a WiX file that is updated automatically and programmatically. This file needs to have a define tag added to it, but I can’t find a method for doing this with C#. Every time I try to add an element it says that it is not contained in the root element (which is true cause the “define” is a preprocessor command and is not included in the root element). In order to edit the XML tag (that is also preprocessor) there is built in functionality. Does anyone know if there is also built in functionality for define? Thanks for your help!
I have a WiX file that is updated automatically and programmatically. This file needs
Share
If you’re using an XmlWriter, use the WriteProcessingInstruction to write a processing instruction. If you’re using XSLT, use xsl:processing-instruction. If you’re using a different C# mechanism to create your XML, tell us – most mechanisms have facilities to create processing instructions.