So how do you delete a Team Foundation Server (TFS) Team Project that is no longer needed. It is not immediately obvious, certainly there is no obvious way using the Team Explorer GUI.
The answer is to use the “tfsdeleteproject” command.
Usage: TfsDeleteProject [/q] [/force] </server:<server name>> <team project name>
Deletes the Team Project from Team Foundation. To use this command, you must be
a member of either the Team Foundation Server Administrators group or a member
of the Project Administrators group for the project you are deleting. Use this
command with caution because after deleting the team project it cannot be recovered.
[/q] - Do not prompt for confirmation.
</server:<server name>> - The name of the Team Foundation server.
[/force] - Continue even if some data cannot be deleted.
<team project name> - The name of the project. Use quotes if there are spaces in the name.
So to delete a project called “Tim2″ you would open up a visual studio command prompt on a machine with Team Explorer installed and type the following:
c:\Program Files\Microsoft Visual Studio 9.0\VC>tfsdeleteproject /server:tfsserver Tim2
Warning: Deleting a team project is an irrecoverable operation. All version cont
rol, work item tracking and Team Foundation build data will be destroyed from th
e system. The only way to recover this data is by restoring a stored backup of t
he databases. Are you sure you want to delete the team project and all of its da
ta (Y/N)?y
Deleting from Build ...
Done
Deleting from Work Item Tracking ...
Done
Deleting from Version Control ...
Done
Deleting Report Server files ...
Done
Deleting SharePoint site ...
Done
Deleting from Team Foundation Core ...
Done
I had to recently change the name of the SharePoint site that Team Foundation Server (TFS) pointed to for creation of the collaboration site.
On your new moss server you will still need the WSS Ext for SharePoint Installed and you will need to run the “tsconfigwss.exe to make shure SharEPoint is familiar with the location of the TFS report server.
To make TFS point to the new SharePoint site…..
TFS has a handy utility called “tfsadminutil” that allows you to change the URIs associated witht he TFS installation.
TFSAdminUtil ConfigureConnections [/View] [/proxy] [/ClientCertificate: (user|computer)] [/ATUri:<uri>] [/PublicATUri:<uri>]
[/SharepointUri:<uri>] [/SharepointSitesUri:<uri>] [/SharepointAdminUri:<uri>] [/SharepointUnc:<unc>] [/TswaUri:<uri>]
| Argument |
Description |
| user |
Use with /clientcertificate option to specify to use the user certificate store. |
| computer |
Use with /clientcertificate option to specify it to use the computer certificate store. |
| URI |
Use to set the uniform resource indicator (URI) with the appropriate option. |
(more…)
Team Foundation Server (TFS) is a collection of services including version control, work item tracking, and an EventService service. The EventService exposes a set of events that, when fired, can perform actions such as sending e-mail or making a SOAP-based Web service call.
Email alerts can easily be configured on a per project basis using Team Explorer. Once connected to the Team Server, you’ll be able to access the Team menu on the main menu bar. If you select the menu item “Project Alerts” Visual Studio will open the Project Alerts dialog, which allows you to create e-mail subscriptions for the major events associated with a particular project.

TFS will format the body of the message HTML or plain. Multiple Email addresses can be configured by separating them with a semi-colon. Email formating is controlled XSLT transforms located on the TFS server in the “C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\Services\v1.0\Transforms” directory. It transforms the Event XML in to HTML or TEXT. (more…)
Wanted to build a Visual Studio Web Project that would allow me to select a Team Project from a drop-down box and then list all of the folders associated with the Project. This will be used as a stepping stone to later add some check in notifications to Team Foundation Server to perform some specific action based on what folder the source member was checked into….
But for now it just lists the folders associated with the project.
So here is HTML associated with my example project:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| < %@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="TFSListFolders._Default" %>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Select Team Project to Configure:
<asp:dropdownlist ID="drpProjects" runat="server" AutoPostBack="True">
</asp:dropdownlist>
</div>
<asp:listbox ID="lstFolders" runat="server" Height="193px" Width="805px">
</asp:listbox>
</form>
</body>
</html> |
(more…)
Read my Team Foundation Server Overview for general TFS information. Today, I’m documenting the nitty gritty steps to get it installed and working.
My deployment is a little different than the scenarios described in the TFS Installation guide. We have a Microsoft Office SharePoint Server (MOSS) 2007 that we want to make use of for the portal site, a back-end SQL 2008 machine, and want a separate TFS Server. So the TFS Tiers we want to end up with look something like this.

Team Foundation Server Tiers
The DOMAIN accounts I will be using for my two logical tiers are:
| Account |
Description |
| DOMAIN\tfsservice |
TFS Service Account
Member of MOSS Farm Administrator’s Group |
| DOMAIN\tfssetup |
TFS Setup Account
Local Administrator on our 3 servers
SQL “sysadmin” role during the installation |
| DOMAIN\reportingServices |
Reporting Services Service Account
Local Admin on our TFSSERVER |
| DOMAIN\sqlsvc |
SQL Database Service Account |
| DOMAIN\sqlanlsvc |
SQL Analysis Services Service Account |
And my three physical machines are as follows:
Machine Name
|
Description |
| TFSSERVER |
Duh… the TFS Server |
| MOSSSERVER |
MOSS Server running SharePoint 2007 |
| SQLSERVER |
Back-end Database Serrver |
Prerequisite Installation:
Make the DOMAIN\tfssetup user an Administrator on all three machines.
I start by getting the SharePoint Extensions for TFS installed on our MOSSSERVER web front end. Right off the bat, things were starting to get complicated because we use 64 bit machines and the SharePoint Extensions that come with the TFS installation media only has the 32 bit versions. You need to download the TFS 2008 Power Tool from Microsoft here.
(more…)