Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Call Stack (https://www.kinook.com/Forum/showthread.php?t=4388)

maks 02-03-2010 02:05 PM

Call Stack
 
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:

;

for each step in the stack.

http://www.kinook.com/VisBuildPro/Ma...peproperty.htm
http://www.kinook.com/VisBuildPro/Ma...psproperty.htm
http://www.kinook.com/VisBuildPro/Ma...emproperty.htm

maks 02-03-2010 02:38 PM

1 Attachment(s)
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/Ma...rdefaction.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


All times are GMT -5. The time now is 02:07 PM.


Copyright © 1999-2023 Kinook Software, Inc.