TFS 2008 get latest version automatically

When using  the Visual Studio integration for TFS 2008, you will notice that the latest version will not be retrieved when you start making changes to a file.

There is an option that you need to have an option.  To get to this option perform the following steps:

Launch Visual Studio 2008

Click Tools->Options

Expand the Source Control section

Click on Visual Studio Team Foundation Server

Ensure that the Get Latest version of item on check out is checked.

Now when you check out a file if you don’t have the latest version, it will prompt that you don’t and fetch it for you.

So you want to retrieve your test results?

When you create a test project in Visual Studio, you can load test your application, but you won’t be able to save/view results without a storage type set to database.  You can check your storage type by checking the properties on the Run Settings. (if you set it to none, you will be able run the test)


By default you do not have a database to store the results of you load test.  (Why your not asked during installation to create one is beyond me).

You need to run the SQLscript to create the LoadTest database.

Here is the path to the script C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\loadtestresultsrepository.sql

You will also need to set your connection string.  You need to go to Test –>Administer Test Controllers.  The click the ellipse (…) to set your connection string.


Now that you have a database and your connection string set,you can use the database storage type.


Can’t open a Visual Studio test project

The test tools in Visual Studio can help you stress test your application.  The only problem is that they are not included with the regular developer edition of Visual Studio.  So if have the wrong version installed you need to uninstall and reinstall a version that does have those project types (like Team Suite).

What I found though was after you uninstalled and reinstalled you were not able to open/create test projects.

The project types were there, but you receive an error:  The following project languages must be installed C#, C++, VB.NET (or something like that).  Everything else will work, but the test project template.

What you have to do in go to Control Panel –> Programs and Features (or add/remove programs) and do a Repair/Reinstall on your install of Visual Studio.
After that finishes you can now open/create test projects.


VS copy instead of paste problem

So in Visual Studio when accidently copy (ctrl-c) instead of paste (ctrl-v) you lose what was on your clipboard.

Quite annoying behavior, but you can fix it.

Tools-> Options –> check Show All Settings –> expand the Text Editor node –> select All Languages –> under Settings –> clear the Apply cut or copy commands when there is no selection.

This will change the behavior in visual studio to work like word when it comes to copy and paste.



This is a tip I read about in the Code magazine for Jan/Feb 2009.

Technorati Tags: ,,