Ashish Rawat
Ashish Rawat

Reputation: 1

PreBuild Definition || Execution of script

How to run scripts in build definition (preBuild) in TFS2013? I don't see any option for PreBuild Definition for script run.

Upvotes: 0

Views: 193

Answers (1)

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51183

If you just want to run a PowerShell script or a batch (.bat) file before the system compiles or tests your code. You can use Default Template( TfvcTemplate.12.xaml ) which include the Pre-Build Script options. More info from MSDN.

enter image description here

If you can't change the build template, you can custom your build template to meet the needs. Detail guides from official https://msdn.microsoft.com/en-us/library/dd647551(v=vs.120).aspx You can also learn about the process in the ALM Rangers Build Guidance

Upvotes: 1

Related Questions