I think I found a project references wizard bug.

To repro take a sln and place various csproj files in solution folders, e.g. 
<slnRoot>\ProjectGrouping1\ProjectA\ProjectA.csproj.

Now in your <slnRoot>\Setup\Setup.wixproj add a reference to ProjectA at which 
point the Setup.wixproj contains

    <ProjectReference Include="..\ProjectGrouping1\ProjectA\ProjectA.wixproj">
      <Name>ProjectA (ProjectGroup1\ProjectA)</Name>
      <Project>{<ProjectA.csproj Guid}</Project>
      <Private>True</Private>
    </ProjectReference>

Now in some wix file make a reference to

<File Id="Company.Technology.ProjectA.dll" 
Name="Company.Technology.ProjectA.dll" Source="$(var.ProjectA.TargetPath)" />

Now when you compile it throws compiler errors stating that it does not know 
anything about $(var.ProjectA.TargetPath).  The fix is to open Setup.wixproj in 
notepad and remove the " (ProjectGrouping1\ProjectA)" suffix that was included 
in the <Name> element entry.   After that the compile works.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to