Not directly. AFAIK tasks do not have direct access to the properties of the
msbuild instance calling them. You have to marshal the properties you wish
to use into preprocessor variables using the DefineConstants msbuild
property.

Note that some common properties are defined for you by Votive:

The "misc" properties:

$(var.Debug) Defined if this configuration is a "debug" build
$(var.DevEnvDir) Supposedly undefined if not building from within Visual
Studio

The "solution" vars (if not suppressed). These are documented with the
referenced project vars:

$(var.SolutionDir) $(var.SolutionExt) $(var.SolutionFileName)
$(var.SolutionName) $(var.SolutionPath)

The "project" vars (most of them anyway, just as if this WiX project
(*.wixproj file) where a referenced project, except that the project name is
missing):

$(var.Configuration) $(var.OutDir) $(var.Platform) $(var.ProjectDir)
$(var.ProjectExt) $(var.ProjectFileName) $(var.ProjectName)
$(var.ProjectPath) $(var.TargetDir) $(var.TargetExt) $(var.TargetFileName)
$(var.TargetName) $(var.TargetPath)

So, in your case, you already have $(var.Configuration).
 
-----Original Message-----
From: Sean Farrow [mailto:sean.far...@seanfarrow.co.uk] 
Sent: Thursday, December 02, 2010 11:00 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] msbuild variables in wix source files

Hi:
Is it possible to use msbuild variables (such as $(configuration)) in a .wxs
source file?
Any help appreciated.
Cheers
Sean.
----------------------------------------------------------------------------
--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to