Bugs item #1975405, was opened at 2008-05-27 16:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1975405&group_id=105970
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: votive
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Will (yesthatmcgurk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Preprocessor variables not defined for VSX projects
Initial Comment:
Description:
I'm trying to create an install package for a solution consisting of the two
standard projects for Visual Studio Core Isolated: ProjectName and
ProjectNameUI. The solution also contains a wix project. The wix project
references the main core project ProjectName. The reference sometimes appears
normal, sometimes has a warning icon overlay. When it appears normal, the
property pages for the reference does not show the Full Path of the reference.
When the overlay appears, the Full Path contains the NullReferenceException
message. Using a preprocessor variable in the wxs file results in the
following build error: Undefined preprocessor variable
'$(var.ProjectName.TargetFileName)'
TargetFileName just being an example in this case.
Repro steps:
VS2k8, install the VS 2008 SDK. Create a new solution, Other Project Types ->
Extensibility -> Visual Studio Shell Isolated.
Add a new Wix installer project to the solution (WiX Project)
In the WiX project, reference the non-UI Shell project (defaults to
VSShellStub1).
Examine the property pages for the reference. Either the exception message or
nothing will be listed.
Add the following to the wsx file under the INSTALLLOCATION directory node:
<Component Id="IsolatedShell"
Guid="0DA175A0-21BD-11DD-94C4-1AFF55D89593">
<File Id="lol"
Name="$(var.VSShellStub1.TargetFileName)"
Source="$(var.VSShellStub1.TargetPath)" Vital="yes" />
</Component>
Build the solution
Build will fail with the error message Undefined preprocessor variable
'$(var.VSShellStub1.TargetFileName)'.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1975405&group_id=105970
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs