26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Scheduler, to run the TFSBuild command utility in order to start builds at regular<br />

intervals.<br />

Summary of Steps<br />

• Step 1 – Create and Test Your Build<br />

• Step 2 – Create the TFSBuild Command Line<br />

• Step 3 – Test the TFSBuild Command Line<br />

• Step 4 – Create a Batch File<br />

• Step 5 – Test the Batch File<br />

• Step 6 – Add a Scheduled Task<br />

• Step 7 – Test the Scheduled Task<br />

Before You Begin<br />

Make sure the account that runs your build service is assigned Start a build = Allow<br />

permission in TFS.<br />

Step 1 – Create and Test Your build<br />

In this step, you create a test build and make sure the team-build works from <strong>with</strong>in<br />

<strong>Visual</strong> <strong>Studio</strong> Integrated <strong>Development</strong> Environment (IDE). If the build does not work,<br />

you should fix it before moving on to the next step.<br />

1. Create a Microsoft Windows® Form project that you can use for testing the build.<br />

2. Build the project and make sure that it is working correctly.<br />

3. Check your project into source control<br />

4. Create a team build as follows:<br />

a. In <strong>Team</strong> Explorer, right-click <strong>Team</strong> Builds, and then click New <strong>Team</strong> Build<br />

Type.<br />

b. Complete the self-explanatory <strong>Team</strong> Build Type Creation Wizard.<br />

5. Perform the following steps to verify that the team build is working:<br />

a. In <strong>Team</strong> Explorer, double-click the <strong>Team</strong> Build Project you just created<br />

b. On the Build menu of the <strong>Visual</strong> <strong>Studio</strong> instance, click Build <strong>Team</strong> Project<br />

.<br />

c. Confirm that the correct build type is selected and the click Build<br />

6. Review the build output and make sure that there are no errors in the build process<br />

Important: Make sure that your build services account (TFSService) has Full Control<br />

permission to the shared folder for the drops, as specified in the <strong>Team</strong> Build Type<br />

Wizard.<br />

Step 2 – Create the TFSBuild Command Line<br />

In this step, you create a command for the TFSBuild utility for the purpose of starting a<br />

build.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!