2015-04-12 3 views
1

Я пытаюсь построить установки WiX для моего проекта, но каждый раз, когда я строю его я получаю эти 4 ошибки:Ошибка при попытке построить WIX монтажника

Unresolved reference to symbol 'WixComponentGroup:ServerGUIPlugin.Sources' in section 'Product:{3BEDB48C-1347-4875-AA2C-920435B662E3}'. C:\Users\...\WixInstaller\Product.wxs 33 
Unresolved reference to symbol 'WixComponentGroup:ServerGUIPlugin.Binaries' in section 'Product:{3BEDB48C-1347-4875-AA2C-920435B662E3}'. C:\Users\...\WixInstaller\Product.wxs 34 
Unresolved reference to symbol 'WixComponentGroup:AttachToGUI.Binaries' in section 'Product:{3BEDB48C-1347-4875-AA2C-920435B662E3}'. C:\Users\...\WixInstaller\Product.wxs 37 
Unresolved reference to symbol 'WixComponentGroup:ServerGUI.Binaries' in section 'Product:{3BEDB48C-1347-4875-AA2C-920435B662E3}'. C:\Users\...\WixInstaller\Product.wxs 38 

Они ссылаются на этот кусок кода в продукте .wxs:

<Feature Id="ProductFeature" Title="WixInstaller" Level="1"> 
    <ComponentGroupRef Id="ServerGUIPlugin.Sources" /> <!--This line--> 
    <ComponentGroupRef Id="ServerGUIPlugin.Binaries" /> <!--This line--> 
    <ComponentGroupRef Id="RegistryGroup" /> 
    <ComponentRef Id="comp_4ABDC32C_56A9_4E3D_9640_14D1E430A1CD" /> 
    <ComponentGroupRef Id="AttachToGUI.Binaries" />  <!--This line--> 
    <ComponentGroupRef Id="ServerGUI.Binaries" />   <!--This line--> 
    <ComponentRef Id="comp_22A86C14_76CC_472B_9016_90FD42925402" /> 
</Feature> 

Я искал решение в интернете, но я только начал использовать WiX Toolset и большую часть времени я не знаю, что они говорят. Может ли кто-нибудь сказать мне, почему это вызывает ошибки или что я должен сделать, чтобы исправить это?

+0

Как вы определяете ссылки ComponentGroups? Что-то вроде этого: ' har07

+0

Я этого не сделал, они были сгенерированы автоматически. – thijmen321

+0

В этом случае вы должны добавить также автогенерированные файлы, содержащие эти «ComponentGroup's», в командную строку для освещения и свечи. Иначе их нельзя найти. – taffit

ответ

0

Обновление Наша проблема решена! Вот как мы это сделали:

<Fragment> 
     <Directory Id="TARGETDIR" Name="SourceDir"> 
      <Component Id="comp_22A86C14_76CC_472B_9016_90FD42925402" Guid="..." Permanent="no" SharedDllRefCount="no" Transitive="no"> 
      <File Id="..." DiskId="1" Hidden="no" ReadOnly="no" TrueType="no" System="no" Vital="yes" Name="GMap.NET.Core.dll" Source="..." KeyPath="yes" /> 
      <File Id=".." DiskId="1" Hidden="no" ReadOnly="no" TrueType="no" System="no" Vital="yes" Name="GMap.NET.WindowsForms.dll" Source="..." /> 
      <File Id="..." DiskId="1" Hidden="no" ReadOnly="no" TrueType="no" System="no" Vital="yes" Name="GUIComponents.dll" Source="..." /> 
      <File Id="..." DiskId="1" Hidden="no" ReadOnly="no" TrueType="no" System="no" Vital="yes" Name="ServerGUIPlugin.dll" Source="..." /> 
      </Component> 
      <Directory Id="..." Name="Plugin Source"> 
      <Directory Id="ServerGUIPlugin.Sources" /> 
      <Directory Id="ServerGUIPlugin.Binaries" /> 
      </Directory> 
      <Directory Id="AttachToGUI.Binaries" /> 
      <Directory Id="ServerGUI.Binaries" /> 
      <Component Id="comp_4ABDC32C_56A9_4E3D_9640_14D1E430A1CD" Guid="..." Permanent="no" SharedDllRefCount="no" Transitive="no"> 
      <File Id="..." DiskId="1" Hidden="no" ReadOnly="no" TrueType="no" System="no" Vital="yes" Name="Attach.ico" Source="..." KeyPath="yes" /> 
     </Component> 
     </Directory> 
     <DirectoryRef Id="ServerGUI.Binaries"> 
      <Component Id="ServerGUI.exe" Guid="..."> 
      <File Id="ServerGUI.exe" Source="..." KeyPath="yes" Checksum="yes" /> 
      </Component> 
     </DirectoryRef> 
     <DirectoryRef Id="AttachToGUI.Binaries"> 
      <Component Id="AttachToGUI.exe" Guid="..."> 
      <File Id="AttachToGUI.exe" Source="..." KeyPath="yes" Checksum="yes" /> 
      </Component> 
     </DirectoryRef> 
     <DirectoryRef Id="ServerGUIPlugin.Binaries"> 
      <Component Id="ServerGUIPlugin.dll" Guid="..."> 
      <File Id="ServerGUIPlugin.dll" Source="..." KeyPath="yes" Checksum="yes" /> 
      </Component> 
     </DirectoryRef> 
     <DirectoryRef Id="ServerGUIPlugin.Sources"> 
      <Component Id="PluginBase.cs" Guid="..."> 
      <File Id="PluginBase.cs" Source="..." KeyPath="yes" Checksum="yes" /> 
      </Component> 
      <Component Id="SGPluginAttribute.cs" Guid="..."> 
      <File Id="SGPluginAttribute.cs" Source="..." KeyPath="yes" Checksum="yes" /> 
      </Component> 
     </DirectoryRef> 
     </Fragment> 
     <Fragment> 
     <ComponentGroup Id="ServerGUI.Binaries"> 
      <ComponentRef Id="ServerGUI.exe" /> 
     </ComponentGroup> 
     <ComponentGroup Id="AttachToGUI.Binaries"> 
      <ComponentRef Id="AttachToGUI.exe" /> 
     </ComponentGroup> 
     <ComponentGroup Id="ServerGUIPlugin.Binaries"> 
      <ComponentRef Id="ServerGUIPlugin.dll" /> 
     </ComponentGroup> 
     <ComponentGroup Id="ServerGUIPlugin.Sources"> 
      <ComponentRef Id="PluginBase.cs" /> 
      <ComponentRef Id="SGPluginAttribute.cs" /> 
     </ComponentGroup> 
     </Fragment> 

Это много кода, но так как я coulnd't найти его в любом месте, я полагал, что я, а может оставить его здесь

Смежные вопросы