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:

"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.

TSWA: Report view not showing all work items

By default Report View shows 100 work items only. If you have more than 100 work items in a query and you use Tools » Report View to prepare the list for printing you might notice that not all work items are shown on the report.

Here’s what Hakan Eskici, the father of Web Access, has to say about this:

There’s a limit to the number of work items we display in the “report view” for performance reasons. By default, it’s set to 100, but you can increase this by changing the following line in the web.config file:

<maxWorkitemsInReportList count="100"/>


Cannot download attachements from Work Item Web Access

Solution provided by Hakan Eskici from Microsoft:

If you are using the WIWA feature in the latest TSWA 2008 SP1, you may notice that it’s not possible to download attachment files from the work item window.

As a workaround, you can edit Wiwa\UI\Pages\WorkItems\DownloadAttachment.aspx and modify the page directive to fix this by adding the HasPermission attribute:

<%@ Page Language="C#"
HasPermission="true" %>

Source: http://blogs.msdn.com/hakane/archive/2009/02/13/fix-wiwa-cannot-download-attachments.aspx

Naming Restrictions for Team Foundation Server

Naming Restrictions for TFS

If you ever had questions like:

  • How long is the team project’s name allowed to be?
  • How many levels may an work item area hierarchy have?
  • Which characters are allowed in build type names?
  • What is the maximum supported size for work item attachments?

Those are answered by the MSDN topic: Naming Restrictions for Team Foundation Server