Although it has its share of issues, I am a big fan of Visual Studio 2005 Team Foundation Server (known as TFS for short). Often you’ll see people only leverage it for a source code repository, but if that’s all you are using it for then you are missing out. In addition to storing source code, TFS also supports:
Support for continuous integration
I have found TFS to a very useful tool for all my custom development projects, especially Commerce Server 2007. From a developer’s perspective, I find that I am much more excited about cod analysis, build automation, continuous integration, and testing; the project tracking and management functions are great, but it’s the developer tools that really tickle my fancy. As such, I have included around 15 to 20 pages of content in my book Professional Commerce Server 2007 on how to successfully integrate Commerce Server 2007 and TFS.
To support my writing efforts, I needed to have a TFS environment available during the writing of these chapters. I virtualize nearly all my non-production environments, and it was no different when I setup this server.
To save myself some time, I started with one of my base servers that had the following characteristics (it is extremely handy to have one of these servers archived):
Windows Server 2003 Standard R2 with Service Pack 2 (and all updates applied)
IIS installed and configured
.NET 2.0 installed with latest hotfixes
Visual Studio 2005 Team Developer installed w/ Service Pack 1
SQL Server 2005 Database Services with Service Pack 2
This gave me a huge head start in setting up my TFS environment. For the rest, you should utilize the Visual Studio 2005 Team Foundation Installation Guide. Below are some notes I took on what I did to finish the installation and configuration of TFS.
(Wow, for some reason Live Writer did an awful job with this list - the RSS feed is a mess! Sorry!)
Changed the computer name from “BaseServer to “TFServer.” (reboot)
Updated SQL Server to use the new computer name. Ran the following script:
sp_dropserver 'BaseServer' GO sp_addserver 'TFServer', local GO
Deleted all the SQL Server remote logins that I didn’t need.
Restarted SQL Server 2005. Don’t forget to do this; otherwise, when you run SELECT @@SERVERNAME the old computer name will return.
I think joined “TFServer” to my local domain. (reboot)
You should use domain accounts to manage TFS. I created the following domain accounts:
* TFSSetup (make this account part of the local Administrators group on TFS) * TFSService * TFSReports
Confirmed that IIS 6.0 has ASP.NET enabled, and also confirmed that FrontPage Server 2002 Extensions is not installed.
TFS makes use of more than SQL Server 2005 Database Services. I Installed the following additional SQL Server components:
* Analysis Services * Reporting Services * Integration Services
Shutdown the Analysis, Reporting, and Integration services.
Installed Service Pack 2 for SQL Server 2005 to upgrade additional components. The Database Services had already been upgraded, so I didn’t have to touch it.
Installed Hotfix for Microsoft .NET Framework 2.0 (KB913393) - this is avail on the TFS CD.
Installed Windows SharePoint Services 2.0 with Service Pack 2
* Go to: [http://go.microsoft.com/fwlink/?linkid=55087](http://go.microsoft.com/fwlink/?linkid=55087) to download the bits. * Run the following at the command-line (allows for a silent installation): stsv2.exe /C:"setupsts.exe /remoteSql=yes /provision=no /qn+"
I decided to reboot the machine; all the services I previously stopped are turned back on, and then I can login as
Configured Reporting Services:
![image_thumb](https://wadewegner.blob.core.windows.net/wordpress/content/binary/WindowsLiveWriter/ConfiguringavirtualTFServer_7070/image_thumb6_thumb.png) * Click Start -> Microsoft SQL Server 2005 -> Configuration Tools -> Reporting Services Configuration. * Do the following: * Create a Report Server Virtual Directory * Create a Report Manager Virtual Directory * Apply the Web Service Identity * Configure the Database Setup * I left the remaining steps alone.
* Selected a Single-Server Installation. * Pass the System Health Check . * Used <domain>TFSService to run TFS. * Used <domain>TFSReports to run Reporting. * Enabled Team Foundation Alerts: * Configured local server. * Setup from e-mail address.
![image](https://wadewegner.blob.core.windows.net/wordpress/content/binary/WindowsLiveWriter/ConfiguringavirtualTFServer_7070/image2_thumb.png) * Ran the Reporting Services Configuration Tool * Clicked Encryption Keys, and then Backup.
* Clicked GetRegistrationEntries and then clicked Invoke. * Ensured that the type was "VSTF" within the XML output.
Installed Team Explorer (on the TFS CD).
Installed Visual Studio Team Foundation Service Quiescence GDR:
* This is a feature pack for TFS. * Download from: [http://go.microsoft.com/fwlink/?LinkId=79225](http://go.microsoft.com/fwlink/?LinkId=79225) * Required before you can install SP1.
* Download from: [http://go.microsoft.com/fwlink/?LinkId=79224](http://go.microsoft.com/fwlink/?LinkId=79224)
* Opened the "build" folder on the TFS CD. * Ran Setup.exe. * Used <domain>TFSSERVICE as the service account.
Ran Visual Studio 2005 Team Foundation Server Service Pack 1 again to update Team Foundation Build.
One final reboot.
Now, to verify that everything was installed and configured properly, I performed confirmed that I was able to create a new Team Project.
Open up Visual Studio 2005
Click View -> Team Explorer
Click Add Existing Team Project
All together, this process took around 3 hours. Granted, this would have taken a lot longer if I hadn’t already had a virtual machine that was mostly configured.
I hope this helps!