If you use $(var.MyProjectName.TargetDir)MyAssemblyName.dll correctly, it will 
just work.  Building with TFS 2010 or later, the Default Template will set 
OutDir to the Binaries location for all projects.  One of the many reasons this 
is done is for performance--file I/O is one of the biggest time killers in a 
build, and dropping all the files in one folder is efficient from this point of 
view.

When one violates this assumption and tries to force TFS to build into the 
source tree and not into the binaries tree, bad things happen.  One of those 
bad things is a significant increase in build times cause by the extra file 
copies.

--
John Merryweather Cooper
Build & Install Engineer -- ESA
Jack Henry & Associates, Inc.(r)
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com




-----Original Message-----
From: RHaggard [mailto:hagg...@msn.com] 
Sent: Monday, October 7, 2013 12:46 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to detect an environmental variable's value?

Ah. Figured it out. It appears that the syntax of the conditional was 
incorrect. This works:

<?ifdef env.IsTfsBuildAgent ?>
  <?define SourcePath = "..\..\..\binaries" ?> <?else ?>
  <?define SourcePath = "..\bin\$var.Configuration)" ?> <?endif ?>

Note the absence (despite what it says elsewhere in the documentation) of the 
'$(' around the env.IsTfsBuildAgent. This simple little trick makes it possible 
to build on either a TFS build agent or a developer's desktop without making 
any changes more complicated than adding the one single environmental variable 
to the TFS build agent itself. No need to create new build scripts or otherwise 
alter the workflow template.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-detect-an-environmental-variable-s-value-tp7589501p7589503.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register > 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to