Skip to content

MikeBevers.be

Putting it out there…

Archive

Tag: Visual Studio 2010

The problem

Recently we’ve changed the extension of the external url of our TFS server. Strange enough Visual Studio doesn’t provide an edit feature in the TFS servers window. Maybe that’s why it’s called “Add/Remove Team Foundation Server”.

The solution

I went looking where Visual Studio stored the TFS info. After a bit of searching in the Registry I ended up in: “CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\Instances”.

In the Instances folder you’ll see all your added TFS servers. You can start by changing the name of the folder, this text is used as the name label. What is important, is to change all the Uri entries you’ll find in the subfolders. There is one per TFS server and one for each collection!

Happy coding!

Where are my regions?

When I implemented my first interface with Visual Studio 2010, I noticed that the implemented methods were not enclosed with the Region directive.

Interface without regions

Interface implementation without regions

If you want your regions back, you explicitly need to tell Visual Studio by enabling them in the options dialog.

Options - Texteditor - Advanced

Options - Texteditor - Advanced

After you’ve enabled them, all is back to normal…

Interface with regions

Interface implementation with regions