我的 WiX (3.10.3.3007) 项目有 2 个不同的 web.config 文件,它们来自并安装到 2 个不同的位置。我的构建中的 2 个错误是:错误 ICE30:目标文件 'svcenub9.con|Web.config' 由 LFN 系统上的两个不同组件安装在 '[TARGETDIR]\inetpub\wwwroot\barcode\' 中:'web_config'和“views_web_config”。这会破坏组件引用计数。
错误 ICE30:目标文件 'svcenub9.con|Web.config' 由 LFN 系统上的两个不同组件安装在 '[TARGETDIR]\inetpub\wwwroot\barcode\' 中:'web_config' 和 'views_web_config'。这会破坏组件引用计数。
有问题的 XML 及其目录是:
<Fragment>
<DirectoryRef Id="barcode">
...
<Component Id="web_config" Guid="*">
<File Id="web_config" KeyPath="yes" Source="$(var.buildSrc)\BarcodeIntegrationService\Web.config" />
</Component>
...
<Directory Id="views">
...
<Component Id="views_web_config" Guid="*">
<File Id="views_web_config" KeyPath="yes" Source="$(var.buildSrc)\BarcodeIntegrationService\Views\Web.config" />
</Component>
...
</Directory>
...
</DirectoryRef>
</Fragment>
由于这是一个 ICE 错误,我确实生成了一个 MSI。当我查看 Component 表时,我可以看到它们确实有不同的目录。
我的 WiX 项目中是否有我没有添加的内容?