WiX ICE30 错误但目录正确 [英] WiX ICE30 error but directory is correct

查看:24
本文介绍了WiX ICE30 错误但目录正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 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".这会破坏组件引用计数.

My WiX (3.10.3.3007) project has 2 different web.config files from, and installed to, 2 different locations. The 2 errors from my build are: Error ICE30: The target file 'svcenub9.con|Web.config' is installed in '[TARGETDIR]\inetpub\wwwroot\barcode\' by two different components on an LFN system: 'web_config' and 'views_web_config'. This breaks component reference counting.

错误 ICE30:目标文件svcenub9.con|Web.config"由 LFN 系统上的两个不同组件安装在[TARGETDIR]\inetpub\wwwroot\barcode\"中:web_config"和views_web_config".这会破坏组件引用计数.

Error ICE30: The target file 'svcenub9.con|Web.config' is installed in '[TARGETDIR]\inetpub\wwwroot\barcode\' by two different components on an LFN system: 'web_config' and 'views_web_config'. This breaks component reference counting.

有问题的 XML 及其目录是:

The XML in question, and their directories, are:

<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 表时,我可以看到它们确实有不同的目录.

Since this is an ICE error I do have an MSI generated. When I look there at the Component table I can see that they do indeed have distinct directories.

我的 WiX 项目中是否有我没有添加的内容?

Is there something in my WiX project that I'm not adding?

推荐答案

问题是我的 Directory 元素没有 Name 属性.在 Directory 表中, DefaultDir 被设置为 .对于我所有的目录.因此,ICE 将它们视为同一目录.

The problem is that my Directory elements did not have a Name attribute. In the Directory table the DefaultDir was set to . for all of my directories. Thus the ICE was viewing them as the same directory.

这篇关于WiX ICE30 错误但目录正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆