PDA

View Full Version : Call Stack


maks
02-03-2010, 02:05 PM
I would like to be able to get a callstack (as a string) for the current step that's being executed.

On a high level what I'm trying to do is the following. I'm integrating Visual Build with Team Foundation build by calling Visual build script (command line) from TFS build custom step. I've implemented a way to update my TFS build step message so it shows current Visual Build step name and index.

kinook
02-03-2010, 02:18 PM
It's not explicitly supported, but the undocumented CallStack property of the Builder component does return an array of strings in the form:

<step type>;<step index>

for each step in the stack.

http://www.kinook.com/VisBuildPro/Manual/steptypeproperty.htm
http://www.kinook.com/VisBuildPro/Manual/stepsproperty.htm
http://www.kinook.com/VisBuildPro/Manual/stepitemproperty.htm

maks
02-03-2010, 02:38 PM
When I try to access an element of Builder.CallStack I get (Object not a collection: 'Builder.CallStack') (see attached script)

kinook
02-03-2010, 02:45 PM
The return value is not accessible from script. You should be able to access it from a custom action written in C# or VB.NET.
http://www.kinook.com/VisBuildPro/Manual/userdefaction.htm

maks
02-03-2010, 05:09 PM
That is actually how I update the TFS build step through a com object written in c# so your suggestion works great for me.

Thanks