Feature Requests item #1585281, was opened at 2006-10-26 11:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: 5
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>


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

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to