title: How to include Wix Fragments created by Heat
body: <p>I have the following fragment:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
      &lt;Fragment&gt;
          &lt;ComponentGroup Id="Doc"&gt;
              &lt;ComponentRef Id="cmpCDCC386748AE7BEFE7C2F4E764390254" /&gt;
              &lt;ComponentRef Id="cmp6EC513AE37CCAE66CEA96577E2384AFA" /&gt;
              &lt;ComponentRef Id="cmp0C9D9450CB94FF74C6E29C1C3F6D16D5" /&gt;
              &lt;ComponentRef Id="cmp314DEE3E909157F47FDF963DCC04D2AC" /&gt;
              &lt;ComponentRef Id="cmpBC5FB761D7B0DA99F96ECA9A91DD4217" /&gt;
              &lt;ComponentRef Id="cmp6B9E4B7B6F710D7077171BCE0B96A90A" /&gt;
              &lt;ComponentRef Id="cmp5959CF1572C71417D536C491A996C6DE" /&gt;
              &lt;ComponentRef Id="cmpCC960E9F3DDDE1600206003C43FFE663" /&gt;
          &lt;/ComponentGroup&gt;
      &lt;/Fragment&gt;
      &lt;Fragment&gt;
          &lt;DirectoryRef Id="AzureApplicationSDK"&gt;
              &lt;Directory Id="dir67745C9C3FA1B31D9AF8883D12D8FBD8" Name="Doc"&gt;
                  &lt;Component Id="cmpCDCC386748AE7BEFE7C2F4E764390254" Guid="{A46C5689-42D1-41CA-AD71-B2A416FA9571}"&gt;
                      &lt;File Id="fil3B7DFCD3444314759F8617411F7EE08C" KeyPath="yes" Source="SourceDir\Azure Applications SDK v1 Cascade Tables Getting Started Guide.docx" /&gt;
                  &lt;/Component&gt;
                  &lt;Component Id="cmp6EC513AE37CCAE66CEA96577E2384AFA" Guid="{697C1B04-5279-4B31-9600-F3BCA4C1AD06}"&gt;
                      &lt;File Id="filFDDD2C48EF5C14BA924C4272E4D9D490" KeyPath="yes" Source="SourceDir\Azurite Identity.docx" /&gt;
                  &lt;/Component&gt;
                  &lt;Component Id="cmp0C9D9450CB94FF74C6E29C1C3F6D16D5" Guid="{1C61C6C5-60F0-41A5-B229-093419E5F767}"&gt;
                      &lt;File Id="fil4C736D0525C45780C242DA3BCA6823BA" KeyPath="yes" Source="SourceDir\Mercurius messaging how-to.docx" /&gt;
                  &lt;/Component&gt;
                  &lt;Component Id="cmp314DEE3E909157F47FDF963DCC04D2AC" Guid="{FD9BD847-5B89-42EA-A178-451AC8B822F4}"&gt;
                      &lt;File Id="fil841FCFCD72670AEF83A89B6724126546" KeyPath="yes" Source="SourceDir\Nexus Notes.pptx" /&gt;
                  &lt;/Component&gt;
                  &lt;Component Id="cmpBC5FB761D7B0DA99F96ECA9A91DD4217" Guid="{2424B541-D40B-4D2D-938E-0AC5C9C2A773}"&gt;
                      &lt;File Id="fil8D9E68E77FC45E6F50191FF6F20F2039" KeyPath="yes" Source="SourceDir\Owner Powershell Snapin.docx" /&gt;
                  &lt;/Component&gt;
                  &lt;Component Id="cmp6B9E4B7B6F710D7077171BCE0B96A90A" Guid="{E467FD03-EFB4-4E4F-9A34-75540BEB1B1C}"&gt;
                      &lt;File Id="filB48A598247AE4A63638F96A69A545EE4" KeyPath="yes" Source="SourceDir\SDK First Look.pptx" /&gt;
                  &lt;/Component&gt;
                  &lt;Component Id="cmp5959CF1572C71417D536C491A996C6DE" Guid="{27890FBC-2822-4061-A086-E9E539F58A64}"&gt;
                      &lt;File Id="fil9CCA5FE9338BD9EB6E1E2B4F685D9F16" KeyPath="yes" Source="SourceDir\Unit Tests.docx" /&gt;
                  &lt;/Component&gt;
                  &lt;Component Id="cmpCC960E9F3DDDE1600206003C43FFE663" Guid="{D9B8BFB9-3F3B-40FE-A3E9-C5E1669E529A}"&gt;
                      &lt;File Id="fil98D1506B9A1C3AD2D9D03EA43BEEB80A" KeyPath="yes" Source="SourceDir\Using Nexus.docx" /&gt;
                  &lt;/Component&gt;
              &lt;/Directory&gt;
          &lt;/DirectoryRef&gt;
      &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>Within my main .wxs file I have the following:</p>
  
  <pre><code>&lt;Feature Id="MainApplication" Title="zure Application SDK" Level="1"&gt;
      &lt;ComponentRef Id="Doc"/&gt;
  &lt;/Feature&gt;
  </code></pre>
  
  <p>I execute </p>
  
  <pre><code>C:\Program Files (x86)\Windows Installer XML v3\bin\Light.exe -cultures:null -ext "C:\Program Files (x86)\Windows Installer XML v3\bin\WixUIExtension.dll" -ext "C:\Program Files (x86)\Windows Installer XML v3\bin\WixNetFxExtension.dll" -out "c:\source\Azure Applications SDK\Bespin\QADrop\QADropInstaller\bin\Release\QADropInstaller.msi" -pdbout "c:\source\Azure Applications SDK\Bespin\QADrop\QADropInstaller\bin\Release\QADropInstaller.wixpdb" -v obj\Release\QADropInstall.wixobj obj\Release\Doc.wixobj 
  </code></pre>
  
  <p>and I get the following error </p>
  
  <pre><code>Error   21  Unresolved reference to symbol 'Component:Doc' in 
  section 'Product:{CF56D65B-BE0D-4719-BEFD-5DC04F7AD7FC}'.   
  c:\source\Azure Applications SDK\Bespin\QADrop\QADropInstaller\QADropInstall.wxs
  160 1   Azure Application SDK Installer
  </code></pre>
  
  <p>Can anyone tell me what I'm doing wrong?</p>