【问题标题】:wix 3.6 ComponentGroupRef Id="Product.Generated" gives error, wix 3.5 does notwix 3.6 ComponentGroupRef Id="Product.Generated" 给出错误,wix 3.5 没有
【发布时间】:2012-09-05 13:16:10
【问题描述】:

我刚刚将 wix 更新到 3.6,升级后我的 wix 项目无法构建。

xml 中的以下行触发错误:

<ComponentGroupRef Id="Product.Generated"/>

错误解释如下:

error LGHT0094: Unresolved reference to symbol 'WixComponentGroup:Product.Generated' in section 'Product:*'.

如果我注释掉 ComponetGroupRef 元素,则创建的 msi 没有任何错误,并且它似乎与升级到 3.6 之前一样工作。

失败:

<Feature Id="ProductFeature" Title="My.net Server" Level="1">
   <ComponentRef Id="My.Server" />
   <ComponentRef Id="My.Server.exe.config"/>
   <!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. -->
   <ComponentGroupRef Id="Product.Generated" />
</Feature>

作品:

<Feature Id="ProductFeature" Title="My.net Server" Level="1">
   <ComponentRef Id="My.Server" />
   <ComponentRef Id="My.Server.exe.config"/>
</Feature>

有人能解释一下这个错误吗?我是否破坏了我应该注意或修复的东西?该条目有多重要,它到底有什么作用?

【问题讨论】:

    标签: wix wix3.6


    【解决方案1】:

    今天发布的问题完全相同,LGHT0094: Unresolved reference to symbol 'WixComponentGroup:Product.Generated' in section 'Product:*' 你应该在提问之前先搜索一下,道歉在那里有点粗鲁,很匆忙。在发布之前进行快速搜索总是好的,它可以防止投票..:)

    【讨论】:

    • 我在谷歌和堆栈交换上搜索了很多,所以我们一定只是交叉了路径。此外,您在其他答案中得出的结论与我大致相同,即删除它似乎不会破坏任何东西。我希望有人能对实际发生的事情有所了解。
    • 将此标记为答案,因为至少其他问题的答案似乎对某些人有所帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多