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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• For more information about using MSBuild Extras to build .NET 1.1 applications, see<br />

“Building .NET 1.1 application using <strong>Team</strong> Build” at<br />

http://blogs.msdn.com/gautamg/archive/2006/04/19/578915.aspx<br />

How to Build Setup and Deployment Projects <strong>with</strong> <strong>Team</strong> Build<br />

<strong>Team</strong> Build does not support setup projects by default. Use a custom post-build step to<br />

compile the setup project and copy the binaries to the build drop location as follows.<br />

1. Test the build.<br />

Make sure that the <strong>Team</strong> Build that you want to use for the setup project works. If it does<br />

not, fix it before moving on.<br />

Tip: Most builds include the main project build as well as the setup build. If you are<br />

creating a new team build for the setup project only, do this before moving to step 2.<br />

2. Ensure that the setup project is built by default.<br />

1. In Solution Explorer, right-click the installer project for which you need to create<br />

a team build.<br />

2. Click Properties.<br />

3. Click Configuration Manager...<br />

4. Select the build configuration(s) you want to build; for example, Debug, Release.<br />

5. Select the Build check box for the installer project.<br />

3. Ensure that all build paths in the project file are relative.<br />

1. Open the solution folder for the installer project.<br />

2. Open the .vdproj file in an editor other than <strong>Visual</strong> <strong>Studio</strong>.<br />

3. Check out the .vdproj file for editing.<br />

4. Search for each of the following entries: SccLocalPath, SccAuxPath,<br />

OutputFileName, and SourcePath.<br />

5. Ensure that the path for each entry is relative and not absolute. (This is the default<br />

when a setup project is created.) Absolute paths start <strong>with</strong> a drive letter. Relative<br />

paths start <strong>with</strong> a double forward slash (‘\\’) or nothing.<br />

6. If you find an absolute path, replace it <strong>with</strong> a relative path. Do not modify any<br />

constant expressions. These are expanded by the installer later; for example:<br />

"OutputFileName" = "8:c:\\temp\\SetupProject.msi" would be replaced<br />

<strong>with</strong> "OutputFileName" = "8:debug\\SetupProject.msi"<br />

Tip: Relative paths will be directly off of the project folder.<br />

Tip: Always use double forward slash ( '\\' ) when creating paths because<br />

it will be passed through code that decodes to a single forward slash ( '\' ).<br />

7. If you had to make any changes, check the .vdproj file back in.<br />

4. Add a post-compile task to your team build.<br />

1. Open the team build you want to use for the setup project.

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

Saved successfully!

Ooh no, something went wrong!