Category Archives: 2910

VSTS Whitepapers by Microsoft

Planning

Installation, Configuration & Administration

Requirements Management

Version Control

Q: How Do I link work items with SharePoint documents?

A: Two possible ways:

Step 1: Get the URL of the document saved in a SharePoint document library

From the project portal:

Right-click the file and select Copy Shortcut. Done.

Image-0007 

From the Team Explorer window in Visual Studio:

Right-click the file under the Documents folder and select Properties.

InVS1 

The quickest way is to double-click on “Url”, then right-click the blue-marked URL on the right side and select Copy (or press Ctrl+C respectively).

InVS2

Step 2: Add the link to the work item

Select Add on the work item’s Links tab:

Image-0002

Select the a link type of “Hyperlink”:

Image-0003 

Paste the URL and enter a comment optionally:

 Image-0005

Confirm with “OK”.

Image-0006

Done.

Ways to access Team Foundation Server

Pick your favorite tool for your task/job:

From Visual Studio:

From the command line:

From the web browser:

From Microsoft Office products:

From other platforms or IDEs:

From Windows Explorer:

From other products:

From Windows Taskbar:

Footnotes
(*) requires Team Explorer to be installed.
($) means the product is a commercial third party solution.

Version Control Tip: Excluding specific files from multiple checkout

Question:

Can I define a file name, not only a file type (extension), if multiple checkout is allowed for the whole Team Foundation Server?

Answer:

Yes, that is possible, although the UI shows “file extensions” and displays it in a way that you might think that it’s not supported.

As a result you can specify that *.cs files in general do support multiple checkout but a certain file called “specific.cs” follows exclusive-checkout logic.

FileTypes2

 

Enjoy!

-Neno

Uninstalling TFS 2005 (services) on the app tier removes reporting services virtual directories

After uninstalling TFS 2005 (services) from a standby TFS application tier the SQL Server Reporting Services were not available, i.e. browsing http://server/reports and http://server/reportserver/ resulted in a 404 error.


Workaround:


Run the Reporting Services Configuration Tool and recreate both virtual directories and re-configure the identities.


 


(Thanks to Daniel Hackel who administers this environment.)

Documentation: Team Foundation Server SDK (online version)

From the contents:

  • Team Foundation Server Extensibility
  • Team Foundation Server SDK Architecture
  • How to: Run Team Foundation Server SDK Samples
  • Team Foundation Core Services
  • Work Item Tracking Extensibility
  • Source Control Extensibility
  • Data Warehouse Extensibility
  • Reference for Team Foundation Server SDK

Link: http://msdn2.microsoft.com/en-us/library/bb130146(VS.80).aspx

How code churn is calculated in TFS 2005/2008

Code churn [1] in TFS 2005 and TFS 2008 is calculated using a very simple algorithm: inserted + changed + deleted lines [2].

This is done independently of the contents of the line, which means that everything – incl. comments, blank lines, etc. – is counted.

[1] http://blogs.msdn.com/mohamedg/archive/2007/12/04/code-churn.aspx

[2] http://msdn2.microsoft.com/en-us/library/ms244698(VS.80).aspx

FIX: An unexpected error occurred while trying to add a web part to a project portal in TFS 2005

Due to a lot of requests about this pretty common problem.


Steps you did:


  1. You browsed for a web part:

    Step1_BrowseForWebparts
  2. You selected one and hit “Add”:

    Step2_AddWebpart
  3. You got the error message: “An unexpected error occurred.”

    Step3_AnUnexpectedErrorHasOccured

This is a know issue with WSS 2.0 and a hot fix [1] can be requested at Microsoft which corrects this behavior.


I tried this with various customers and we could then successfully add new web parts after applying it.


Enjoy!


[1] http://support.microsoft.com/kb/915746/en-us

Known Work Item History Limitations for Links & Attachments

They are two major problems when looking into the history with regard to links.


1. No clue what has changed:
If you remove an attachment and add a completely different one the history will indicate that there was a change (revision gets in incremented by 1), but it won’t tell you what has changed since TFS only tracks the numbers (e.g. number of external links).

RemovedAndAddedAttachement


2. Work Item links are only reflected in history on one side:


You have two work items: item 52 and item 53.


You decide to link item 53 with item 52.

AddLink


Both items show the work item link under their “Links” tab.


Item 53 shows the new link in the history:


HistoryOfItem53


But the history of Item 52 shows no changes at all:


HistoryOfItem52

Whitepaper: Operations Guidance for Team Foundation Server

Summary: You can manage your deployment of Microsoft Visual Studio 2005 Team Foundation Server more effectively if you create your own operations plan. As you create your plan, you should understand key elements of the architecture of Team Foundation Server and how your deployment topology affects operations. This white paper explains those elements in detail, so that you can avoid common problems with your deployment.

Contents


  • Overview
  • Understanding Your Team Foundation Server Topology
  • Managing Service Accounts
  • Managing Groups, Users, and Permissions
  • Managing Backup and Recovery
  • Managing Configuration Information
  • Monitoring Team Foundation Server
  • Creating an Operations Plan
  • Conclusion
  • Author Bio
  • Additional Information

Tfsoperationsguide


Link: http://msdn2.microsoft.com/en-us/library/bb663036(VS.80).aspx