Visual Studio Team System (VSTS) Blog - by Neno Loje

Team Development and Software Quality with Microsofts ALM platform - since 2005

News

Recent Posts

Community

Tags

Email Notifications

VSTS Blogs

VSTS Sites

VSTS Community

My Other Blogs

German VSTS Websites

Archives

Team Foundation Server 2010 Beta 2

Be aware:

Downloads

Screenshots from Installation

  1. Preparing SQL Server 2008 for TFS 2010 Beta 2
  2. Preparing IIS7 for TFS 2010 Beta 2
  3. (Optional) Preparing SSRS for TFS 2010 Beta 2
  4. (Optional) Preparing WSS 3.0 for TFS 2010 Beta 2
  5. Installing TFS 2010 Beta 2
  6. Installing Team Foundation Build 2010 Beta 2
  7. Installing Team Explorer 2010 Beta 2

Supports & Licensing

Posted: Thu, Nov 5 2009 7:00 by neno | with no comments
Filed under:
Updating Visual Studio 2008 in order to work with TFS 2010

The update for VS2008, called General Distribution Release (GDR), allows you to:

“The GDR enables teams to use TFS 2010 even if part of the team uses the 2008 client. Some new functions will require the 2010 client. However, the GDR lets you use the 2010 server to perform the same functions that you were able to perform in the 2008 client.”

Download: http://www.microsoft.com/downloads/details.aspx?FamilyID=CF13EA45-D17B-4EDC-8E6C-6C5B208EC54D

Further information

Unsupported scenarios in VS/Team Explorer 2008 when working against a TFS 2010
(found here)

  • Creating new team projects
  • Destroying Work Items or Work Item Type and Renaming Work Item Type,
  • Uploading Process Templates
  • Uploading Work Item Definitions
  • Uploading TFS Field Mapping for Microsoft Project
Posted: Thu, Nov 5 2009 6:06 by neno | with no comments
Filed under: ,
Screen Gallery: Installing Team Explorer 2010 Beta 2 and Creating a new Team Project on TFS 2010 Beta 2

Screenshots of a successfull installation of Team Explorer 2010 according to the Team Foundation Installation Guide 2010.

Part 1: Installation

Image-0076

Image-0075

Image-0077

Image-0078

Image-0079

Image-0080

Image-0081

Part 2: Creating a new team project

Image-0083

Image-0084 

Image-0085

Image-0086

Image-0087

Image-0088

Image-0089

Image-0090

Image-0094 

Image-0095 

Image-0096 

Image-0097

Image-0099

Screen Gallery: Installing Team Foundation Build 2010 Beta 2

Screenshots of a successfull installation of Team Foundation Build Service 2010 according to the Team Foundation Installation Guide 2010.

Installation

Image-0056

Image-0057

Image-0058

Image-0059

Image-0060

Image-0071

Image-0072

Image-0073

Screen Gallery: Installing TFS 2010 Beta 2

Screenshots of a successfull installation of Team Foundation Server 2010 according to the Team Foundation Installation Guide 2010.

As prerequisite make sure you configured the following components for use by TFS:

Part 1: Installation

Image-0063

Image-0064

Image-0065

Image-0066 

Image-0067

Image-0001

Image-0070

Image-0002

Part 2: Post-Install Configuration

Note: These screenshots show the “Advanced” wizard option. There are also “Standard” and “basic” wizards available.

Image-0012

Image-0013

Image-0014

Image-0015

Image-0016

Image-0017

Image-0018

Image-0019

Image-0020

Image-0021

Image-0029

Image-0031

Image-0032

Image-0035

Image-0039

Image-0040

Image-0042

Part 3: Validation

Image-0041

Screen Gallery: Preparing WSS 3.0 for TFS 2010 Beta 2

Screenshots of a successfull installation of Windows SharePoint Services 3.0 according to the Team Foundation Installation Guide 2010.

Part 1: Installation

Image-0045

Image-0046

Image-0047

Image-0048

Image-0049

 Image-0050

Image-0052

Image-0053

Image-0054

Image-0055

Image-0056

Image-0057

Image-0058

Image-0059

Image-0060

Image-0061

Part 2: Post-Install configuration

Image-0022

Image-0023

Image-0024

Image-0025

Image-0026

Image-0028

Screen Gallery: Preparing SSRS for TFS 2010 Beta 2

Screenshots of a successfull installation of SQL Server Reporting Services (SSRS) from SQL 2008 according to the Team Foundation Installation Guide 2010.

This step required the .NET Framework 3.5 SP1 to be installed.

Part 1:Installation

Image-0008

Image-0009

Image-0010

Image-0011

Image-0012

Image-0013

Image-0014

Image-0015

Image-0016

Image-0017

Image-0018

Image-0019

Image-0020

Image-0021

Image-0022

Image-0023

Image-0024

Image-0025

Image-0026

Image-0027

Part 2: Post-Install Configuration

Image-0030

Image-0029

Image-0029

Image-0031

Image-0032

Image-0033

Image-0035

Image-0036

Image-0037

Image-0038

Image-0039

Image-0039

Image-0040

Image-0041

Image-0042

Image-0043

Image-0044

Screen Gallery: Preparing IIS7 for TFS 2010 Beta 2

Screenshots of a successfull installation of Internet Information Services (IIS) 7.0 according to the Team Foundation Installation Guide 2010.

During this process you will add:

  • ASP.NET

  • Windows Authentication

  • IIS 6 Management Compatibility

Image-0000 

Image-0001

Image-0002

Image-0003

 Image-0004

 Image-0005

 Image-0006

 Image-0009

Image-0010

Screen Gallery: Preparing SQL Server 2008 for TFS 2010 Beta 2

Screenshots of a successfull installation of SQL Server 2008 according to the Team Foundation Installation Guide 2010.

In this case TFS is installed in a dual-server configuration, meaning:

  1. Data Tier: containing SQL Server and Analysis Services
  2. App Tier: containing Reporting Services, Windows SharePoint Services and TFS itself

Installation

Note: In the sceenshots a new SQL instance is added to an existing database server.

Image-0000

Image-0001

Image-0002

Image-0003 

Image-0004 

Image-0005

Image-0006

Image-0007

Image-0008

Image-0009

Image-0010

TF30207: Can't create team project on TFS itself / red X on documents and reports / insufficient SSRS or WSS permissions

Problem description

Team Project creation fails on the Team Foundation Server itself due to insufficient permissions although the user has all neccessary permissions in SQL Server Reporting Services (Content Manager role) as well as Windows SharePoint Services.

or

A red X is shown next to the Reports and Documents node when running Team Explorer on the Team Foundation Server itself.

Further obervations:

    • You can access http://<server>/reports without problems.
    • You can access the SharePoint Central Administration without problems.
    • Creating team projects with Team Explorer from other machines work fine.

Workaround

Follow the steps outlined in the following KB article:  http://support.microsoft.com/kb/896861

How to integrate Microsoft Security Development Lifecycle (SDL) into your TFS process template
MicrosoftSecurityDevelopmentLifecycle

Downloads:

Additional information:

Tip: How to shrink TeamCompanion’s ribbon commands

Outlook + TFS = TeamCompanion TeamCompanion, the popular Outlook plug-in for TFS, adds pretty wide command icons to Outlook’s mail window ribbon bar, as you can see here:

Before:

TeamCompanion's default ribbon appearance

You can control it using the following registry entry:

Key: HKCU\Software\Ekobit\TeamCompanion.Outlook

Value: DisplayButtonCaptionsInRibbon (DWORD) must be 0 (= hide captions)

After:

TeamCompanion - After hiding the button captions 

Why is there no 64-bit version of Visual Studio?

Currently Visual Studio runs as a 32-bit process on 64-bit Windows operating systems.

Rico Mariani knows why and posts why he wants to "load less, not more".

 

A small side note: TFS 2010 will support 32 and 64-bit Windows on the server side.

Stop SQL Server transaction log (.LDF) files from growing indefinitely

SQL Server .LDF files are growing and growing and growing... Symptoms

You notice that in your SQL databases directory the .LDF files are growing permanently.

Solution

Set the recovery mode of your SQL Server databases to 'simple'.

Step-by-step instructions

  1. Perform a full-backup of your SQL Server databases.
    Note: This is very important since switching from the full or bulk-logged recovery model to the simple recovery model breaks the backup log chain. Therefore, it is strongly recommend to back up the log immediately before switching, which allows you to recover the database up to that point. After switching, you need to take periodic data backups to protect your data and to truncate the inactive portion of the transaction log. [Source]
  2. Switch recovery mode of SQL databases to SIMPLE.
    (See also: What is simple recovery mode?)

    Important Note:
  3. "The Simple recovery model lets you restore the database to the point from which it was last backed up. However, this recovery model does not enable you to restore the database to the point of failure or to a particular time."  [Source]


    For each database...


    ... set recovery mode to SIMPLE.

  4. Shrink the transaction log (.LDF) files.


    Don't forget to Shrink...

    ... the log files after changing the recovery mode. 
  5. Perform a full-backup of your SQL Server databases.

 

 

 

 

 

 

Optionally you can use a script for the steps described above:


SqlScript

See and possibly unlock files checked out by other team members

Ed Hintz points out that this is easily done with TFS Power Tools and wrote about it in 2007.

  1. In the Source Control Explorer, right click on a parent folder that contains the pending change and choose, “Find in Source Control”.
  2. Choose "Status…".

    Find in Source Control command from TFS power tools
  3. Press the Find button. (optionally you can type in a user and\or wildcards if you want to narrow the search)

    Optionally filter for user and/or wildcards
  4. You will be presented a “Find in Source Control” window.
  5. Select the pending change and press the undo button OR right click Undo…

    Can easily undo changes of other users
  6. Done.
Customizing the folders and file extensions automatically excluded

When adding items to source control a list of excluded folders as well as file extensions is shown. You can customize those defaults in the registry.

image

Matthew Mitrik has the details:

If the add operation is successfully completed, the list will be saved to the registry.

Order of finding masks to filter:

  1. HKCU\Software\Microsoft\VisualStudio\[Version]\TeamFoundation\SourceControl\AddOptions\ExcludeMasks
  2. HKLM\Software\Microsoft\VisualStudio\[Version]\TeamFoundation\SourceControl\AddOptions\ExcludeMasks

(Thanks to Rich and Matt)

Recommendations for Virus Scanning on TFS computers

AV software can slow down your Team Foundation Server installation Anti-virus software can badly impact the performance of your Team Foundation Server. Therefore make sure the following folders are excluded from scanning for viruses:

  • TFS Version Control Cache Folder
  • Team System Web Access Cache Folder
  • SQL database folders
  • SQL backup folders

Additionally Microsoft published virus scanning recommendations for:

(Thanks to Wes to pointing me at those three articles.)

Setting Remaining Work to Zero when closing a work item in TFS

Question:

How can I make sure that the "Remaining Work" field is set to 0 when the work item is closed (for example when associating a work item during checking-in)?

Short Answer:

You can achieve this using the <COPY> rule on the transition to the "Closed" state.

Step-by-Step instructions:

  1. For the desired transition (in this example from "Active" to "Closed").

    Edit the Workflow Transition with Process Template Editor (part of TFS Power Tools)

  2. Add a field reference to "Microsoft.VSTS.Scheduling.RemainingWork"

    Choose the desired field 
  3. Add a new rule of type "COPY"

    You can use the copy rule to set values
  4. Choose From = "value" and enter value = "0"

    The copy rule sets a value to a field
  5. The resulting XML should look something like

     XML under the covers defines our new rule
  6. Verification: After transitioning a task work item from "Active" to the "Closed" state "Remaining Work" is set to zero.

    Work Item History shows the new rule in beeing applied on the state transition. 
Hotfix KB 971092 for Visual Studio 2008 SP1 install problems

Windows Update for VS repeats indefinitely Applies to:

Security Update for Microsoft Visual Studio 2008 Service Pack 1 (KB971092)

Symptoms:

The update installs successfully and but will be offered again by Windows Update as a new update. This can be repeated indefinitely.

or

the standalone installer tells you that this update "does not apply, or is blocked by another condition on your system".

Workaround (found here):

  1. Download the stand-alone version of VS90SP1-KB971092-x86.exe.
  2. Start the installation VS90SP1-KB971092-x86.exe
  3. Wait for the error message to come up – do not close the window
  4. Copy the temp. folder where the patch has been unpacked to a new folder, for example onto your desktop.
  5. Close VS90SP1-KB971092-x86.exe that you started in step 2.
  6. Navigate to {Program Files}\Microsoft Visual Studio 9.0\Common7\Tools and find vsvars32.bat.
  7. Change the permissions on the file to allow everyone to edit it.
  8. Start VS90SP1-KB971092-x86.msp from within the saved folder and the process should complete.
  9. You may want to reset permissions that you gave in step 7.
Posted: Wed, Jul 29 2009 23:38 by neno | with 2 comment(s)
Filed under: ,
Disable auto-connect to TFS on VS startup

When starting Visual Studio it automatically tries to connect to your TFS, which can be very annoying if you work offline. You will probably see:

TF30331: Team Explorer could not connect to the Team Foundation server ...

You can turn this auto-connect behavior off by setting the following files in the registry:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation
"AutoLoadServer" = 0

Zero means do not reconnect automatically. 

Source: http://blogs.msdn.com/hippietim/archive/2006/03/14/551320.aspx

Downside: you now always have to manually connect (from Team Explorer’s toolbar)

Download .REG file: NoAutoLoadServer.zip

P.S. The Team Foundation Power Tools (TFPT) include a feature called Tweak UI which offers a checkbox to set this registry key – however in the October 2008 version it has a bug (creaing a string value instead of DWORD) and therefore will not work.

More Posts Next page »