Wix包含元素不起作用

jer*_*ome 1 windows-installer wix

我正在使用一个非常简单的声明来包含一个包含wix安装程序的变量定义的文件。这仅在64位MSI安装程序中失败。

?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include $(var.ProjectDir)\Includes\Variables.wxi ?>
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Schema validation failed with the following error at line 1, column 245: The element 'Wix' in namespace 'http://schemas.microsoft.com/wix/2006/wi' cannot contain text. List of possible elements expected: 'Bundle Product Module Patch Fragment PatchCreation'.
Run Code Online (Sandbox Code Playgroud)

jer*_*ome 5

找到了。随附的xml中存在此“->”注释结束标记。这就是错误的原因。如果有某种检查错字的功能会更好。误导性错误消息。