WiX References: Overriding the Default ProjectReference Name
(NOTE: Continued from the previous article headed ‘Wix References:’…)
Well, look long (and hard) enough, and often the solution presents itself. This morning, taking a look at things fresh I realized that one possible answer was simply doing a direct edit of the .csproj file itself:
172 <ProjectReference Include="..\..\..\..\Shared\Common\Common.csproj">
174 <Name>Common %28Shared\Common%29</Name>
Notice on line 174 the <Name> tag contains text that renders to "Common (Shared\Common)". Unfortunately, WiX can’t use a variable name of the form "$(var.Common (Shared\Common).TargetDir)", without throwing a whole pile of new exceptions. Obviously, changing the contents of <Name> is the solution here.
And "mission accomplished"!