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.

2. Check out the build type from source control:<br />

a. You can find the build type beneath your team project in source control, in<br />

a subfolder of the <strong>Team</strong>BuildTypes folder named TFSBuild.proj.<br />

b. You might need to perform a Get Latest Version operation on the folder<br />

first.<br />

3. In Source Control Explorer, double-click TFSBuild.Proj to open it.<br />

Note: Viewing the build type from the <strong>Team</strong> Explorer will not work; because this<br />

opens a read-only copy of the build file.<br />

4. Add the following code to the end of the file between the last tag<br />

and the last tag:<br />

<br />

<br />

<br />

<br />

<br />

5. Check the paths in the pasted code to make sure that they are accurate for your<br />

build server.<br />

Tip: Use the command line to test the path in the exec command tag. Replace<br />

each &quot; <strong>with</strong> a quote when testing on the command line, for example:<br />

"C:\Program Files\Microsoft <strong>Visual</strong> <strong>Studio</strong> 8\Common7\IDE\devenv" "C:\Documents and<br />

Settings\darren\My Documents\<strong>Visual</strong> <strong>Studio</strong><br />

2005\Projects\HelloWorldTest\HelloWorldTestInstaller\HelloWorldTestInstaller.vdproj" /Build<br />

"Debug"<br />

Tip: Use the command line to test the SourceFiles paths as well.<br />

5. Test the build changes.<br />

1. In <strong>Team</strong> Explorer, right-click the build type and then click Build <strong>Team</strong> Project.<br />

2. Review the build summary to determine if the build passed or failed.<br />

3. If the build failed, click the link to the build log. Common reasons for failure<br />

include:<br />

a. Exec command path is incorrect.<br />

b. Permissions are not set to allow the output files to be copied to the<br />

build directory. Make sure that the tfsservice user account has<br />

permissions to copy from the binaries folder and to the build folder. The<br />

binaries folder is the location where the msi file will be placed after the

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

Saved successfully!

Ooh no, something went wrong!