Building a Web Site Project with Team Build

If you're still using Web Site projects, I strongly urge you to switch to Web Application Projects. Web Application Projects are included in Visual Studio 2005 Service Pack 1. There are lots of good technical and practical reasons to make the switch, especially in Team System. But I digress.

If you're still using Web Site projects, you'll have to make some modifications before you can build these projects using Team Build.

In order to build a Web Site project at all, you must add a new project type to your solution-- the Web Deployment Project. It's a new project type that you'll need to download from Microsoft and install. But don't worry: it's a very small download, and a quick, painless install.

Once you have Web Deployment Projects installed, right click each web site and select "Add Web Deployment Project".

Once you have the deployment projects set up, make sure they're deselected in Configuration Manager for the Debug builds. There's no need to waste compile time on deployment until you're ready to create a release.

After you do a Team Build for this project, you should see a new _PublishedWebsites folder in the drops folder that contains the website and dependencies:

Now, this is the behavior you'll get by default with a Web Application project, but for each Web Site project, you must have one Web Deployment Project in place to get things working.

posted on Thursday, February 15, 2007 2:05 PM by jatwood

Comments

# Copying Web Files After a Team Build


After building a web project in a Team Build, you probably want to deploy that website to a target...
Friday, February 16, 2007 12:12 PM by Team System

# VSTS Links - 02/19/2007

Chris Rathjen on TFS - Enhanced support for Windows Sharepoint Services
.

Rob Caron on SharePoint...
Monday, February 19, 2007 6:38 AM by Team System News

# re: Building a Web Site Project with Team Build

"...strongly urge you to switch to Web Application Projects"

Jeff -- you've mentioned this a few times, and I was wondering if you had a definitive list of reasons why?
Monday, April 16, 2007 9:59 AM by Joe

# Web Deployment, Team Build and Team Foundation Server

Recently I've been trying to get Web Deployment projects to work under Team Foundation Server. It took...
Sunday, May 27, 2007 11:18 PM by Scott Middleton

# Web Deployment, Team Build and Team Foundation Server

Recently I've been trying to get Web Deployment projects to work under Team Foundation Server. It took...
Sunday, May 27, 2007 11:19 PM by Scott Middleton