Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-03-2010, 03:05 PM
maks maks is online now
Registered User
 
Join Date: 03-09-2005
Posts: 8
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.
Reply With Quote
  #2  
Old 02-03-2010, 03:18 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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/Ma...peproperty.htm
http://www.kinook.com/VisBuildPro/Ma...psproperty.htm
http://www.kinook.com/VisBuildPro/Ma...emproperty.htm
Reply With Quote
  #3  
Old 02-03-2010, 03:38 PM
maks maks is online now
Registered User
 
Join Date: 03-09-2005
Posts: 8
When I try to access an element of Builder.CallStack I get (Object not a collection: 'Builder.CallStack') (see attached script)
Attached Files
File Type: bld callstacktest.bld (624 Bytes, 2264 views)
Reply With Quote
  #4  
Old 02-03-2010, 03:45 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Reply With Quote
  #5  
Old 02-03-2010, 06:09 PM
maks maks is online now
Registered User
 
Join Date: 03-09-2005
Posts: 8
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:12 AM.


Copyright © 1999-2023 Kinook Software, Inc.