Off topic (not a WiX discussion at all):

Note, that the Default Template has been optimized for speed since VS/TFS 2010. 
 There are good performance reason why output is directed to a central OutDir.

It turns out that preserving the workstation outputs in their separate build 
folders is a worst-case scenario on a TFS build server--easily doubling or 
tripling your build times because of the considerably increased file I/O.

Note also that MSTest is configured and optimized to work correctly only when 
assemblies are dropped to the central OutDir.  When you violate this pattern 
you may:  1) see unit tests silently fail; 2) unit tests that throw certain 
sorts of exceptions may cause the test container to lock--causing the next 
builds on that server to fail until you unlock the file; 3) MSTest may not 
properly report the test results; and 4) you'll have to configure the location 
of each test container by hand in the build definition (the build template's 
regex search won't work otherwise).

Many of these side effects occur because preserving the solution individual 
build folders forces the build to build entirely within the SourceDir tree.  
The Default Template is designed to build in a split-tree scenario where source 
is in one tree and the output binaries are in another.  This is optimal on a 
server build (e.g., the relatively slow Workspace clean out only has to be run 
on the SourceDir tree since it can assume there are no binaries in it; the 
Binary tree is also easy to blow away since nothing in it should be in source 
control).

For short builds and builds that don't use unit tests, this doesn't matter very 
much.  For builds like I used to do at PMX (Windows Mobile 6, 6.5, and 7 and a 
full application suite) that took 4.5 hours on a highly optimized setup, it's 
punishing.

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



-----Original Message-----
From: John H Bergman (XPedient) [mailto:john.berg...@xpdnt.com] 
Sent: Thursday, June 5, 2014 2:55 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] TFS 2013 -- new default build template and WiX

There is also a way to configure the build template to use the output 
directories of the solution, if you are interested, I'll dig up my notes and 
send them to you, it was pretty straight forward though

-----Original Message-----
From: Rune Moberg [mailto:jjfl...@gmail.com]
Sent: Thursday, June 5, 2014 1:32 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] TFS 2013 -- new default build template and WiX

Well, I have been playing with the idea of my own little publishing scheme. 
Maybe this is the shove I needed. Thx for the input guys.

On Thu, Jun 5, 2014 at 7:22 PM, John H Bergman (XPedient) 
<john.berg...@xpdnt.com> wrote:
> Or, you could add an activity (and configuration point) that copies the 
> desired files from the drop location to a new location for publishing.
>
> -----Original Message-----
> From: James Buchan [mailto:james.buc...@tribalgroup.com]
> Sent: Thursday, June 5, 2014 12:07 PM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] TFS 2013 -- new default build template and 
> WiX
>
> Hi,
>         There are 2 ways I'm aware of that you can do this. I haven't looked 
> at the default build workflow template for a while so can't remember exactly 
> what needs to be replaced, but these should point you in the right direction.
>
> 1 - Create a new build task to do the rename (relocate) the files for you (I 
> do more than the example below in my action, this means for each build that 
> uses my template I need to add additional code to my action, but it's a small 
> overhead I can handle).
>
> namespace BuildTasks.Activities
> {
>     public sealed class RenameMSI : CodeActivity
>     {
>         public InArgument<string> OutDir { get; set; }
>        public InArgument<string> DropDir { get; set; }
>
>         protected override void Execute(CodeActivityContext context)
>         {
>             string outDir = context.GetValue(this.OutDir);
>             string dropDir = context.GetValue(this.DropDir);
>
>         File.Copy(outDir + "\\MSIName.msi", dropDir + "\\ MSIName.msi");
>         }
>     }
> }
>
> 2 - If you're less comfortable with writing your own build tasks, you can use 
> some of the included tasks (with a bit of configuration) to do something 
> similar.
> I used the following link when I first started messing with build 
> templates, to reduce the amount of stuff that appears in my drop 
> folder (see from step 12) 
> http://geekswithblogs.net/jakob/archive/2010/05/14/building-visual-stu
> dio-setup-projects-with-tfs-2010-team-build.aspx
>
> James
>
>
>
> ----------------------------------------------------------------------
> -------- Learn Graph Databases - Download FREE O'Reilly Book "Graph 
> Databases" is the definitive new guide to graph databases and their 
> applications. Written by three acclaimed leaders in the field, this first 
> edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------- Learn Graph Databases - Download FREE O'Reilly Book "Graph 
> Databases" is the definitive new guide to graph databases and their 
> applications. Written by three acclaimed leaders in the field, this 
> first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users



--
Rune

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the 
definitive new guide to graph databases and their applications. Written by 
three acclaimed leaders in the field, this first edition is now available. 
Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the 
definitive new guide to graph databases and their applications. Written by 
three acclaimed leaders in the field, this first edition is now available. 
Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
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.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to