Feature Requests item #1585281, was opened at 2006-10-26 11:43
Message generated for change (Comment added) made by justinrockwood
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1585281&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
Priority: 8
Private: No
Submitted By: Justin Rockwood (justinrockwood)
Assigned to: Justin Rockwood (justinrockwood)
Summary: Add solution and project variables back to Votive v3

Initial Comment:
Votive v2 had a feature which has not yet been added 
back to Votive v3, and that is automatically defining 
the following preprocessor variables as part of the 
build.

You should be able to right mouse click on 
the .wixproj file’s "References" node and add a 
project reference to another project in your solution 
(a C# DLL project, for example). Once you have one or 
more project references in your .wixproj file, then 
before the compile happens, I generate 10 sets of 
preprocessor definitions per project. For example, if 
my reference project was named MyCSharpProject, then 
I’d have the following preprocessor definitions:

$(var.MyCSharpProject.ProjectDir) – example 
C:\MySolution\MyCSharpProject\
$(var.MyCSharpProject.ProjectExt) – example .csproj
$(var.MyCSharpProject.ProjectFileName) – example 
MyCSharpProject.csproj
$(var.MyCSharpProject.ProjectName) – example 
MyCSharpProject
$(var.MyCSharpProject.ProjectPath) – example 
C:\MySolution\MyCSharpProject\MyCSharpProject.csproj

$(var.MyCSharpProject.TargetDir) – example 
C:\MySolution\MyCSharpProject\bin\Debug\
$(var.MyCSharpProject.TargetExt) – example .dll
$(var.MyCSharpProject.TargetFileName) – example 
MyCSharp.dll
$(var.MyCSharpProject.TargetName) – example MyCSharp
$(var.MyCSharpProject.TargetPath) – example 
C:\MySolution\MyCSharpProject\bin\Debug\MyCSharp.dll

This then lets you do things like this in your wxs 
file:

<Component Id=”MyCSharpProjectComponent” Guid=”…”>
  <File Id=”MyCSharpProjectOutput.dll” 
Name=”$(var.MyCSharpProject.TargetFileName)” 
Source=”$(var.MyCSharpProject.TargetPath)” 
KeyPath=”yes” />
</Component>


----------------------------------------------------------------------

>Comment By: Justin Rockwood (justinrockwood)
Date: 2007-05-14 13:28

Message:
Logged In: YES 
user_id=1054914
Originator: YES

I already have a local fix and plan to check in for next week's build.

----------------------------------------------------------------------

Comment By: Doug S (tpaxatb)
Date: 2007-05-14 13:21

Message:
Logged In: YES 
user_id=1342505
Originator: NO

I've created a poor-man's version of this partially (by hijacking the
ResolveProjectReferences target from Microsoft.Common.targets and adding
that to a CustomAfterWixTargets file and depending AfterResolveReferences
on this target) but is there any word on an ETA for this feature in an
'official' build?  

----------------------------------------------------------------------

Comment By: HeO (heo)
Date: 2007-03-01 06:42

Message:
Logged In: YES 
user_id=1732464
Originator: NO

Adjustment of priority highly appreciated :)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1585281&group_id=105970

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to