Administering a team build

Questions derived from the 70-510 – TS: Visual Studio 2005 Team Foundation Server Microsoft Self-Test Software Practice Test.


Objective: Administering a team build
SubObjective: Extend the team build by using a custom task


Item Number: 70-510.5.4.4
Single Answer, Multiple Choice


You are the project lead of a software development team in your organization. You create a custom task to run with the build operation. You check out the TfsBuild.proj file and register the custom task.


What step should you perform next?



  1. Use the ITask interface
  2. Save and check in the TfsBuild.proj file
  3. Add the Target element to the TfsBuild.proj file
  4. Add the UsingTask element to the TfsBuild.proj file

Answer:
C. Add the Target element to the TfsBuild.proj file


Tutorial:
You should add the Target element to the TfsBuild.proj file. Adding the Target element is required to call the custom task to run with the build operation at a specified point. You should use the following syntax to add a Target element:


<Target Name=”TargetName”>
                <TaskName/>
</Target>


Where TargetName is the name of the target at which the task should be performed. For example, if the target name is specified as AfterClean then the task will run after the clean operation is completed.


You should not use the ITask interface. The ITask interface is used to create a custom task and not to register it. You can directly implement the ITask interface to define a task that can…


cmadmin

ABOUT THE AUTHOR

Posted in Uncategorized|

Comment:

Powered by WebDesk