我刚刚将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>
有人能解释一下这个错误吗?我是否打破了我应该注意或解决的问题?这个条目有多重要,它到底有什么作用?
答案 0 :(得分:3)
今天发布的确切相同的问题,LGHT0094: Unresolved reference to symbol 'WixComponentGroup:Product.Generated' in section 'Product:*'你应该在提问之前进行搜索,道歉在那里遇到一点点粗鲁,匆匆忙忙。总是很好,只是在发布之前快速搜索,它将防止downvoting .. :)