That sounds like what you'll get if you set RunMSBuild.OutputLocation
to "AsConfigured". I tried that, but that stopped msbuild from
publishing my web projects. Which means I end up reworking my setup
projects to fish out relevant .config-files from quite a few scattered
locations. What I'd really like to see is RunMSBuild respect its
OutDir property. AFAICT it is completely ignored (overriden by
OutputLocation -- which, btw, defaults to "SingleFolder" if no value
has been set). (Oh, and I abandoned the old MSBuild action because I
couldn't get NuGet working properly, whereas the new RunMSBuild action
works nicely with NuGet)

As for copying stuff around afterward, I have both custom actions and
an old template that does that already.

I guess I just feel there ought to be a cleaner solution to this. Do
most TFS users really drop off all files from the build?

On a related note, TFS have added the capability of dropping files
into the version control repository. That, combined with an action
that ferries along the *.msi files to the real location... It might
not be a bad idea to keep all the built projects around.


On Thu, Jun 5, 2014 at 9:54 PM, John H Bergman (XPedient)
<john.berg...@xpdnt.com> wrote:
> 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



-- 
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

Reply via email to