- Create new VC++ project
- Add Reference to this project in Wix project
- Add new component to Wix project
<component id="user-content-test.exe" guid="{298F2624-B16F-439d-AF38-AFA92B25E07D}">
<file id="user-content-test.exe" name="$(var.test.TargetFileName)" source="$(var.test.TargetPath)" diskid="1">
</file></component>
- build solution
Result the error appears:
C:\Products\Test\Product.wxs(18,0): error CNDL0150: Undefined preprocessor variable '$(var.test.TargetPath)'.
wix version 3.0.4130.0
Logged In: YES
user_id=1889945
Originator: NO
I have same bug.
The same problems also exists if you build solution through the Team Foundation Build (TFS Build).
The Feature related to this bug.
http://sourceforge.net/tracker/index.php?func=detail&aid=1585281&group_id=105970&atid=642717
Logged In: YES
user_id=1054914
Originator: NO
Votive 3 does not support VC++ project references, unfortunately. It's a highly requested feature, though. It's captured as a feature request #1585281 (http://sourceforge.net/tracker/index.php?func=detail&aid=1585281&group_id=105970&atid=642717).
Since this is already in a Feature Request, I'm closing the bug.