Actually it turns out that it is not actually "working". It was "working' in the sense that the above changes allowed the Compiler Extension project to compile succesfully. However in a nost project, if the compiler encounters any message related to this XML file it throws the following exception.
candle.exe(0,0): error CNDL0001: Stream is not a valid resource file. Exception Type: System.ArgumentException Stack Trace: at System.Resources.ResourceReader._ReadResources() at System.Resources.ResourceReader.ReadResources() at System.Resources.ResourceReader..ctor(Stream stream, Dictionary`2 resCache) at System.Resources.RuntimeResourceSet..ctor(Stream stream) at System.Resources.ManifestBasedResourceGroveler.CreateResourceSet(Stream store, Assembly assembly) at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Resources.ResourceManager.GetString(String name, CultureInfo culture) at System.Resources.ResourceManager.GetString(String name) at Microsoft.Tools.WindowsInstallerXml.MessageHandler.GenerateMessageString(MessageLevel messageLevel, MessageEventArgs mea) at Microsoft.Tools.WindowsInstallerXml.ConsoleMessageHandler.GenerateMessageString(MessageLevel messageLevel, MessageEventArgs mea) at Microsoft.Tools.WindowsInstallerXml.MessageHandler.GetMessageString(Object sender, MessageEventArgs mea) at Microsoft.Tools.WindowsInstallerXml.ConsoleMessageHandler.Display(Object sender, MessageEventArgs mea) at Microsoft.Tools.WindowsInstallerXml.CompilerCore.OnMessage(MessageEventArgs e) at Qumu.Rdp.RdpExt.RdpExtension.RdpExtCompiler.ParseWinFeaturesElement(XmlNode node, String componentId, Boolean win64) in C:\Development\Installs\Tools\ext\RdpExt\wixext\WinFeatureCompiler.cs:line 110 at Qumu.Rdp.RdpExt.RdpExtension.RdpExtCompiler.ParseElement(SourceLineNumberCollection sourceLineNumbers, XmlElement parentElement, XmlElement element, String[] contextValues) in C:\Development\Installs\Tools\ext\RdpExt\wixext\CompilerExtension.cs:line 60 at Microsoft.Tools.WindowsInstallerXml.CompilerExtension.ParseElement(SourceLineNumberCollection sourceLineNumbers, XmlElement parentElement, XmlElement element, String& keyPath, String[] contextValues) at Microsoft.Tools.WindowsInstallerXml.CompilerCore.ParseExtensionElement(SourceLineNumberCollection sourceLineNumbers, XmlElement parentElement, XmlElement element, String& keyPath, String[] contextValues) at Microsoft.Tools.WindowsInstallerXml.Compiler.ParseComponentElement(XmlNode node, ComplexReferenceParentType parentType, String parentId, String parentLanguage, Int32 diskId, String directoryId, String srcPath) at Microsoft.Tools.WindowsInstallerXml.Compiler.ParseComponentGroupElement(XmlNode node, ComplexReferenceParentType parentType, String parentId) at Microsoft.Tools.WindowsInstallerXml.Compiler.ParseFragmentElement(XmlNode node) at Microsoft.Tools.WindowsInstallerXml.Compiler.ParseWixElement(XmlNode node) at Microsoft.Tools.WindowsInstallerXml.Compiler.Compile(XmlDocument source) at Microsoft.Tools.WindowsInstallerXml.Tools.Candle.Run(String[] args) If I comment out each this.Core.OnMessage(MyExtWarnings,...), or put it in a block of code not reached by the compiler, then the exception does not happen. The XML is embedded into the DLL. Any thoughts on how to debug this problem? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WixExtension-how-to-use-a-messages-xml-file-tp7592715p7592915.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users