title: WIX - how to resolve error LGHT0094: Unresolved reference to symbol
body: <p>I'm using WIX 3.8 to create my setup file. This is my Product.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;Product Id="{D16E42B5-3C6F-4EE5-B2F4-727BF8B74A92}" Name="My setup" Language="1033" Version="1.0.0.0" Manufacturer="Me" UpgradeCode="9279b740-8419-45c4-9538-6a45f8e949c7"&gt;
          &lt;Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /&gt;
          &lt;MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /&gt;
          &lt;Media Id="1" Cabinet="WCF.cab" EmbedCab="yes" /&gt;
          &lt;Feature Id="ProductFeature" Title="Wcf.Setup" Level="1"&gt;
              &lt;ComponentGroupRef Id="WCFComponents" /&gt;
          &lt;/Feature&gt;
          &lt;Property Id="WIXUI_INSTALLDIR" Value="INETPUB" /&gt;
      &lt;/Product&gt;
      &lt;Fragment&gt;
          &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
              &lt;Directory Id="INETPUB" Name="Inetpub"&gt;
                  &lt;Directory Id="INSTALLFOLDER" Name="WCF"&gt;
                  &lt;/Directory&gt;
              &lt;/Directory&gt;
          &lt;/Directory&gt;
      &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>And here is the build file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
      &lt;PropertyGroup&gt;
          &lt;WebSiteSource&gt;..\WCF\&lt;/WebSiteSource&gt;
          &lt;SetupF&gt;..\Setup\&lt;/SetupF&gt;
          &lt;PublishF&gt;publish\&lt;/PublishF&gt;
          &lt;Publish&gt;$(SetupF)$(PublishF)&lt;/Publish&gt;
          &lt;WebSiteContentCode&gt;WebSiteContent.wxs&lt;/WebSiteContentCode&gt;
          &lt;WebSiteContentObject&gt;WebSiteContent.wixobj&lt;/WebSiteContentObject&gt;
          &lt;MsiOut&gt;bin\Release\WCF.msi&lt;/MsiOut&gt;
          &lt;WixPath&gt;C:\PROGRA~2\WIXTOO~1.8\bin\&lt;/WixPath&gt;
      &lt;/PropertyGroup&gt;
      &lt;ItemGroup&gt;
          &lt;WebSiteContent Include="$(WebSiteContentCode)" /&gt;
      &lt;/ItemGroup&gt;
      &lt;ItemGroup&gt;
          &lt;WixCode Include="Product.wxs" /&gt;
          &lt;WixCode Include="$(WebSiteContentCode)" /&gt;
      &lt;/ItemGroup&gt;
      &lt;ItemGroup&gt;
          &lt;WixObject Include="Product.wixobj" /&gt;
          &lt;WixObject Include="$(WebSiteContentObject)" /&gt;
      &lt;/ItemGroup&gt;
      &lt;Target Name="Build"&gt;
          &lt;MSBuild
              Projects="..\TMS.sln"
              Targets="ReBuild"
              Properties="Configuration=Release" /&gt;
      &lt;/Target&gt;
      &lt;Target Name="PublishWebsite"&gt;
          &lt;Message Text="Removing publish directory: $(SetupF)"/&gt;
          &lt;RemoveDir Directories="$(SetupF)" ContinueOnError="false" /&gt;
          &lt;Message Text="Start to publish website" Importance="high" /&gt;
          &lt;MSBuild
              Projects="..\\WCF\WCF.csproj"
              Targets="ResolveReferences;_CopyWebApplication"
              Properties="OutDir=$(Publish)bin\;WebProjectOutputDir=
                          $(Publish);Configuration=Release" /&gt;
      &lt;/Target&gt;
      &lt;Target Name="Harvest"&gt;
          &lt;Exec
              Command='$(WixPath)heat dir $(Publish) -dr INSTALLFOLDER -ke -srd -cg WCFComponents -var var.publishDir -gg -out $(WebSiteContentCode)'
              ContinueOnError="false"
              WorkingDirectory="." /&gt;
      &lt;/Target&gt;
      &lt;Target Name="WIX"&gt;
          &lt;Exec
              Command='"$(WixPath)candle" -ext WixIISExtension -ext WixUtilExtension -ext WixSqlExtension -dpublishDir=$(Publish) -dMyWebResourceDir=. @(WixCode, &amp;apos; &amp;apos;)'
              ContinueOnError="false"
              WorkingDirectory="." /&gt;
          &lt;Exec
              Command='"$(WixPath)light" -ext WixIISExtension -ext WixUIExtension -ext WixUtilExtension -ext WixSqlExtension -out $(MsiOut) @(WixObject, &amp;apos; &amp;apos;)'
              ContinueOnError="false"
              WorkingDirectory="." /&gt;
          &lt;Message Text="Install package has been created." /&gt;
      &lt;/Target&gt;
      &lt;Target Name="DeleteTmpFiles"&gt;
          &lt;RemoveDir Directories="$(Publish)" ContinueOnError="false" /&gt;
          &lt;RemoveDir Directories="$(SetupF)" ContinueOnError="false" /&gt;
          &lt;Delete Files="@(WixObject);@(WebSiteContent)" /&gt;
      &lt;/Target&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>I always receive the error message: Product.wxs(10): error LGHT0094: Unresolved reference to symbol 'WixComponentGroup:WCFComponents' in section 'Product:{D16E42B5-3C6F-4EE5-B2F4-727BF8B74A92}'.</p>
  
  <p>I copied exactly the source code from this topic <a href="http://blog.bartdemeyer.be/2013/10/create-an-installer-for-website-with-wix-part-1/" rel="nofollow">http://blog.bartdemeyer.be/2013/10/create-an-installer-for-website-with-wix-part-1/</a> to my project but the source code from here runs property but mine doesn't work.</p>
  
  <p>Could you please help me to solve this problem? Thanks a lot.</p>