1- Include a wxs product file in another product file as an file.
2- run candle on the main file
Expected:
Error message for wrong include
Actual:
An unhandled exception is thrown as well.
Product.wxs
D:\delivery\Dev\wix\temp\test\include\outer.wxl(5) : error CNDL0048 : The document element name 'Wix' is invalid. A WiX include file must use 'Include' as thedocument element name.
candle.exe : error CNDL0001 : There are multiple root elements. Line 7, position 2.
Exception Type: System.Xml.XmlException
Stack Trace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Tools.WindowsInstallerXml.Preprocessor.Process(String sourceFile
, Hashtable variables) in d:\delivery\Dev\wix\src\wix\Preprocessor.cs:line 254
at Microsoft.Tools.WindowsInstallerXml.Tools.Candle.Run(String[] args) in d:\delivery\Dev\wix\src\candle\candle.cs:line 179
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 15 days (the time period specified by
the administrator of this Tracker).