title: WiX unresolved reference error
body: <p>I'm using Wix version 3.0.5419.0.  I have two .wxs files, one which is a fragment, and another which uses the fragment to create the .msi file.</p>
  
  <p>Here is the file which uses the fragment (DaisyFarmer.wxs):</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='windows-1252'?&gt;
  &lt;Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'  
       xmlns:iis='http://schemas.microsoft.com/wix/IIsExtension'&gt;
    &lt;Product Name='Daisy Web Site 1.0' 
             Id='BB7FBBE4-0A25-4cc7-A39C-AC916B665220'
             UpgradeCode='8A5311DE-A125-418f-B0E1-5A30B9C667BD'
             Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='the man'&gt;
  
      &lt;Package Id='5F341544-4F95-4e01-A2F8-EF74448C0D6D' Keywords='Installer'
        Description="desc" Manufacturer='the man' InstallerVersion='100' 
        Languages='1033' Compressed='yes' SummaryCodepage='1252' /&gt;
  
      &lt;Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" /&gt;
      &lt;Property Id='DiskPrompt' Value="the man" /&gt;
  
      &lt;PropertyRef Id="NETFRAMEWORK35"/&gt;
      &lt;Condition Message='This setup requires the .NET Framework 3.5.'&gt;
        &lt;![CDATA[Installed OR (NETFRAMEWORK35)]]&gt;
      &lt;/Condition&gt;
  
      &lt;Feature Id='DaisyFarmer' Title='DaisyFarmer' Level='1'&gt;
        &lt;ComponentRef Id='SchedulerComponent' /&gt;
      &lt;/Feature&gt;
  
    &lt;/Product&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>The fragment I'm referencing is (Scheduler.wxs):</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;DirectoryRef Id="TARGETDIR"&gt;
        &lt;Directory Id="dir2787390E4B7313EB8005DE08108EFEA4" Name="scheduler"&gt;
          &lt;Component Id="SchedulerComponent" 
                     Guid="{9254F7E1-DE41-4EE5-BC0F-BA668AF051CB}"&gt;
            &lt;File Id="fil9A013D0BFB837BAC71FED09C59C5501B"
                  KeyPath="yes"
                  Source="SourceDir\DTBookMonitor.exe" /&gt;
            &lt;File Id="fil4F0D8D05F53E6AFBDB498E7C75C2D98F" 
                  KeyPath="no" 
                  Source="SourceDir\DTBookMonitor.exe.config" /&gt;
            &lt;File Id="filF02F4686267D027CB416E044E8C8C2FA" 
                  KeyPath="no" 
                  Source="SourceDir\monitor.bat" /&gt;
            &lt;File Id="fil05B8FF38A3C85FE6C4A58CD6FDFCD2FB" 
                  KeyPath="no" 
                  Source="SourceDir\output.txt" /&gt;
            &lt;File Id="fil397F04E2527DCFDF7E8AC1DD92E48264" 
                  KeyPath="no" 
                  Source="SourceDir\pipelineOutput.txt" /&gt;
            &lt;File Id="fil83DFACFE7F661A9FF89AA17428474929" 
                  KeyPath="no" 
                  Source="SourceDir\process.bat" /&gt;
            &lt;File Id="fil2809039236E0072642C52C6A52AD6F2F" 
                  KeyPath="no" 
                  Source="SourceDir\README.txt" /&gt;
          &lt;/Component&gt;
        &lt;/Directory&gt;
      &lt;/DirectoryRef&gt;
    &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>I then run the following commands:</p>
  
  <pre><code>candle -ext WixUtilExtension -ext WiXNetFxExtension DaisyFarmer.wxs  Scheduler.wxs
  light -sice:ICE20 -ext WixUtilExtension -ext WiXNetFxExtension Scheduler.wixobj DaisyFarmer.wixobj -out DaisyFarmer.msi
  </code></pre>
  
  <p>I'm getting an error when I run light.exe which says</p>
  
  <blockquote>
    <p>"DaisyFarmer.wxs(20) : error LGHT0094 : Unresolved reference to symbol 'Component:SchedulerComponent' in section 'Product:{BB7FBBE4-0A25-4CC7-A39C-AC916B665220}'."</p>
  </blockquote>
  
  <p>What am I missing?</p>