VS/TFS 2008 SP1 – Installation Tips

Team System, TFS, Visual Studio
Well, Visual Studio 2008 Service Pack 1 (VS 2008 SP1) has been out (RTM’d) for about three days now and several tips have materialized across the Visual Studio community that may help save you some time.  These tips are broken out into Team Foundation Server and Visual Studio. Updating Team Foundation Server 2008 When upgrading a Team Foundation Server, Installation order is important (read the installation guide).  As per the guide, “In deployments where the application tier and a client tier component are installed on the same computer, you must install SP1 for Visual Studio 2008 before you install SP1 for Team Foundation Server. Otherwise, you will not be able to install SP1 for Team Foundation Server.” If you upgrade from SQL Server 2005 to SQL Server 2008 but do…
Read More

Omaha Team System User Group

Team System, User Group
We’ve had yet another successful gathering of the Omaha Team System User Group.  After moderating one of the Birds of a Feather sessions at last month’s Tech-Ed conference, I decided to try something similar with this month’s user group meeting format. Rather than schedule a speaker for this meeting I decided that we would open the floor up for any Team System-related topics for discussion amongst the group.  Being the middle of the summer and having changed the format to not include a speaker I didn’t expect the same turnout that we typically get at other meetings.  We ended up with a total of 15 attendees which was perfect for sitting around a few tables and having some conversation. Some of the topics we discussed included: Certifications – are they…
Read More

DelayedBuildTask

Team Build, Team System, TFS, TFS API
A few days ago a fellow co-worker asked me if I could create a simple build task that would allow anyone on their team the opportunity to cancel a build, once it has been queued, before the build actually did anything.  The idea was simple: A new build gets queued. The build sends out an e-mail notification (via a custom task) informing the recipients that a new build has been queued.  The e-mail message also has a link that, when clicked, will cancel the build. The build waits a pre-determined amount of time (e.g. 5 minutes) giving the e-mail recipients a chance to cancel the build before it continues. If the build is not canceled, the build will proceed as usual once the delay has expired. The driving reason behind…
Read More

TFS Power Tools – July 2008 Release

Team System, TFS, Utilities
The July 2008 release of the Visual Studio Team System 2008 Team Foundation Server Power Tools has just been released.  Here is a summarized list of what is included with the tools: Command line tool (TFPT.EXE) Team Explorer IDE menu additions Build Notification tool TFS Best Practices Analyzer Process Template Editor Work Item Templates Custom check-in policies TFS Server Manager TFS Users tool Alert Editor One of the more exciting changes, from my point of view, is the new user interface for managing TFS Alerts.  It is going to be nice having this capability available directly from within the IDE. For a more detailed look at what’s included, take a look at this post from Brian Harry. Click here to be taken to the download site.
Read More

Cleaning Up Old Team Projects

Team System, TFS, TFS API, Utilities
A few days ago a co-worker sent out an e-mail asking if any of several team projects were still in use; if not, then they would be removed from Team Foundation Server. Looking at the list it was easy enough to recognize a few active projects but others would take more investigation.  After sending my feedback I thought a custom utility might be helpful in the future for the next round of potential deletion candidates.  So, I decided to put the TFS Object Model (TFSOM) to use and created TFSunset (see screen shot below). TFSunset uses the TFSOM to query the version control system and work item store for activity within a specified time range (e.g. the last 30 days).  All team projects for a given team foundation server are…
Read More

Creating Team Build Types

Code Snippet, Team Build, Team System, TFS, TFS API
I was answering a question related to programmatically creating team build types today and realized there weren’t too many examples on the web.  I didn’t see any examples that included all the details I was looking for – for example: Adding the solution to be built to the new build type Turning on/off test execution Turning on/off code analysis An example containing these details may exist, I just didn’t come across it during my initial search. So, with that said, I decided to post the main part of the example application I put together to test out some concepts.  The items listed above are included in the example code below. The example code includes two methods: CreateBuildType – this method accepts six arguments that can be used to programmatically create…
Read More

TFSExamples.com – A New Site

Team System, TFS, TFS API
As of late, I’ve started working on several Team Foundation Server API-based examples (some of which are starting to show up as blog postings).  Although the Team Foundation Server SDK does include some examples, it’s not always easy to locate the example you need (assuming it’s even there).  There are several blogs containing various TFS API examples, but again, the full details may be spread across several postings or even separate sites. Several months ago, Grant Holliday created the TFSBuild.com site dedicated to MSBuild and Team Foundation Build recipes.  I decided to take a similar approach and registered the site TFSExamples.com.  I utilized the same ScrewTurn wiki software and customized it to the needs of the new site.  The intent is to compile a library of Team Foundation Server API…
Read More

Display Connect to Team Foundation Server Dialog

Team System, TFS, TFS API
Over the past few days I’ve been working on a simple TFS utility that will provide the ability to import and/or export Areas and Iterations.  The overall intent of this exercise is not only to reinvent the wheel but to also gain some experience in writing Visual Studio Add-ins.  At the same time, I am planning on posting “interesting” tidbits of code along the way. Currently, I am still in the phase of writing the utility (it will first be a standalone utility and later, a Visual Studio Add-in) and had the desire to display the Connect to Team Foundation Server dialog… I suspected there was an API for this dialog; I only needed to find it – and I did.  Paul Hacker has a nice post that explains the…
Read More

Retrieving Areas from TFS

Team System, TFS, TFS API
As a matter of self-inflicted education I’ve decided to create a simple Visual Studio Add-In for exporting and importing Areas and Iterations.  I’m not sure how much practical use such a utility will receive but it offers several areas for advancing my knowledge and, hopefully, helping a few other people out along the way. Although I haven’t completed the utility yet, I have completed some of the initial utility code.  I thought I would create a few posts as I progress in case anyone can make use of the examples.  For this post, I am posting the code used to retrieve the list of “areas” from a Team Foundation Server.  With that said, here is some example code for saving the list of Areas defined for a given Team Foundation…
Read More

TFS 2008 Setup/Admin FAQ

Team System, TFS
A new forum post has been added to the Team Foundation Server - Setup forum titled TFS 2008 Setup and Administration FAQs.  The intent of this forum post is to deliver commonly asked questions and answers relating to the setup, configuration, and administration of Team Foundation Server 2008.  The post has been "pinned" to the top of the forum so it's easy to find. Here is a list of questions that are answered in the post as of the time of this writing: When installing a new Team Foundation Server, is there a way to use an existing SharePoint Web Application? When creating a new TFS Project, is there a way to use an existing SharePoint site collection? When creating a new TFS Project, is there a way to create…
Read More