title: Can I include a Wix fragment by referencing a property defined in it?
body: <p>I'm using Wix 3.8. I have a Wix library, and in its wxs file I have a Fragment which has a property:</p>
  
  <pre><code>&lt;Fragment&gt;
    &lt;!-- The following property is only used for reference --&gt;
    &lt;Property Id="ReferenceProp"&gt;&lt;/Property&gt;
  
    &lt;!-- other stuff here ... --&gt;
  &lt;/Fragment&gt;
  </code></pre>
  
  <p>In my setup project I want to use the contents of this fragment, but I want to do it in an easy way, so I tried adding a <code>PropertyRef</code> to to the <code>ReferenceProp</code> property defined above. I got an error:</p>
  
  <pre><code>Unresolved reference to symbol 'Property:ReferenceProp'
  </code></pre>
  
  <p>However, if I change said property to be a <code>ComponentGroup</code> (and the ref to a <code>ComponentGroupRef</code>) then it works. Is this a bug? Is it designed to work in that unintuitive way? Or did I miss something?</p>
  
  <p><strong>Edit:</strong> to be clear I did have my <code>PropertyRef</code> inside my <code>Product</code> element when I got the above error.</p>
  
  <p><strong>Edit2:</strong> I knew I had seen some info before explicitly stating I could use PropertyRef to pull in a fragment. Here is the quote from the book Wix 3.6 A developer's Guide to Windows Installer XML by Nick Ramirez:</p>
  
  <blockquote>
    <p>For example, properties, which are variables that you can use to store data, are represented by Property elements and could be stored in a separate file within a Fragment element. Then, by referencing just one of them in your main source file with a PropertyRef element, you'd pull all of them into your project."</p>
  </blockquote>
  
  <p>Either that book is wrong, or this was a feature that they removed, or a newly introduced bug.</p>