Feature Requests item #1585281, was opened at 2006-10-26 20:43
Message generated for change (Comment added) made by heo
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: HeO (heo)
Date: 2007-03-01 15: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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to