Visual Build Pro scripts  
Author Message
Gurpreet Singh Sawhney





PostPosted: Team Foundation Server - Build Automation, Visual Build Pro scripts Top

We have lot of 'visual build pro' scripts that do our day-to-day work. Is it possible to use those scripts in TFS(i.e call visual build pro scripts thru team build)
Also, if yes.. is it a good idea to do this


Visual Studio Team System29  
 
 
Aaron Hallberg





PostPosted: Team Foundation Server - Build Automation, Visual Build Pro scripts Top

I imagine that you can call these through Team Build - the Exec task available within MSBuild can execute any custom command-line you would like. As for whether this is a good idea - I have no idea, since I don't know what your scripts are for! Things to watch out for, however:

* You will need to make sure that the scripts are installed on all your build machines. In general, if you are going to use scripts within your build process it is a good idea to version them (so that builds can be recreated), so I would recommend adding them to version control and relying on the standard Get task behavior within Team Build to pull them down to the build machine.

* The directory structure on your build machine is likely to be different than on your development boxes - watch out for fully qualified paths (i.e. keep things relative), try to keep things in sync between the two environments, etc.

-Aaron



 
 
G S





PostPosted: Team Foundation Server - Build Automation, Visual Build Pro scripts Top

these scripts that I plan to use are mainly the deployment scripts like deploying database files.
Correct me if its not a good approach......i was thinking to build thru Team Build, so that we get all the logging good and also the tfsbuild database gets these things. then while deploying(.net code or database scripts), if i could use our visual build pro scripts to start with. still thinking how to make the whole process work....open for suggestions.


But more importantly...... i tried to run the following command and the team build goes in infinite process. so i have to stop the tfsbuild.exe to stop this build. the command works well on the comman-line.

<Target Name="AfterCompile">
<Exec Command="&quot;C:\Program Files\VisBuildPro6\VisBuildCmd.exe&quot; &quot;C:\VisualBuildProProjects\DeleteArchive.bld&quot;" />
</Target>

Any help is apprectiated.

 
 
Aaron Hallberg





PostPosted: Team Foundation Server - Build Automation, Visual Build Pro scripts Top

Does this command either:

(1) Spawn some GUI Team Build runs in the context of an NT service, and as such cannot spawn GUI.

(2) Expect some user input (e.g. a confirmation of the delete)

-Aaron



 
 
G S





PostPosted: Team Foundation Server - Build Automation, Visual Build Pro scripts Top

1) It doesn't spwan any GUI.
2)No parameters to be put in by the user. But, yeah in the end, I am expecting a confirmation of the number of files and folders deleted.


when run as command-line:

C:\Program Files\VisBuildPro6>VisBuildCmd.exe "C:\VisualBuildProProjects\DeleteA
rchive.bld"

VisBuildCmd, Version 6.1.0.0
Copyright (C) 1999-2006 Kinook Software, Inc. All rights reserved.
Evaluation Version: 30 days remaining

09/12/2006 02:38:32 PM: --------------------Starting Build: 'C:\VisualBuildProPr
ojects\DeleteArchive.bld'--------------------
09/12/2006 02:38:32 PM: Building project step 'Project steps'...
09/12/2006 02:38:32 PM: Building project step 'DeleteOldFolders'...
09/12/2006 02:38:34 PM: Build successfully completed.


>After this I get a popup telling me the number of files and folders deleted.


 
 
G S





PostPosted: Team Foundation Server - Build Automation, Visual Build Pro scripts Top

Aaron,
now that u asked me about the GUI thing, I tried after deleting these confirmation or failed messages in the script and it worked.Thanks. :)