# Sunday, December 13, 2009

Team Foundation Server 2005/2008 didn't make much sense for small teams. TFS 2010 Basic allows you to have a simple, quick source control and issue ("work item") tracking for individuals. It should at least see the end of SourceSafe. Whether it will draw back those who have already jumped to subversion remains to be seen.

Creating workspaces and team projects is not something I'll do very often, so I'll record the steps here.

Download VS2010 and TFS 2010 from Microsoft and install. The TFS configuration wizard kicks in after the install, and is pretty simple.

Connect to TFS.

connect to tfs Spot two ways to do it in this screenshot.

Select TFS server - click "Servers" button

select tfs server

The servers list will be empty at first so click "Add" button

select tfs server 2

Fill in the server name.

select tfs server 3

Now the project collection is shown (always DefaultCollection with basic). Click "Connect"

select tfs server 4

Workspaces

You need to set up a workspace - the local path on your computer (in VSS this would be your "working directory").

In VS2010, File-Source Control - Workspaces.

file-source control-workspaces

It's empty to start. Typically you only have one per TFS server. Click "Add"

tfs workspaces

Map the server folder ("$/") to your local folder (here, C:\Dev)

tfs workspaces 2 

New Team Project

Each TFS contains a number of collections (these root collections are new in 2010), Each collection contains a number of team projects. The team project is typically an application, comprising one or more solutions plus work items and documents. More information here (Codeplex guidance)

You can start a team project from the VS2010 File-New-Team Project or the team explorer.

new team project

It's a simple wizard. Name it, pick the type (you may have a Scrum template), Next, Next, Next.

new team project 2 new team project 3 new team project 4 new team project 5

new team project 6

Your source control is now empty. Don't just put a solution in there. Add New Folder, and use this to put your first code in. I'm calling it Trunk, but TFS people seem to call it "Main".

new source control folder

I created a Visual Studio solution within my workspace\project\trunk folder. I add it to source control.

add solution to source control

And check in (pending changes window)

pending changes

Why a subfolder called "Trunk" (or "main")? So I can create a branch.

I also create a "Branches" folder under the team project, and branch to a subfolder of that. Here I'm creating a branch for a new version (v4).

branching

There's detailed guidance on TFS branching on Codeplex.

posted on Sunday, December 13, 2009 6:07:51 PM (Romance Standard Time, UTC+01:00)  #    Comments [0]
# Saturday, December 12, 2009

scottguusualsuspects

Here I am at the ScottGu impersonators gathering. I'm in the red polo.

scottgucrowd

Ok, actually this was a Scott Guthrie presentation - vs2010, asp4, silverlight 4, asp mvc2. Plus some related stuff like the IIS SEO module and IIS media streaming. And even a demonstration of rickrolling.

Between the lines- the web stack is still evolving strongly (especially SL and MVC, but asp webforms is getting attention too), windows forms is dead, silverlight and silverlight out of browser will replace most of desktop WPF (which is just for Visual Studio scale apps)

scottgulineup I'm in the back row, under the "d" of msdn and looking to the side wondering if ScottGu was in that direction.

posted on Saturday, December 12, 2009 8:31:53 AM (Romance Standard Time, UTC+01:00)  #    Comments [0]
# Friday, December 04, 2009
Lots of nice new stuff in VS2010 intellisense. See the ScottGu blog post which mentions:
  • "contains" matching (not just "starts with"),
  • Resharper-style "camel-humps" (PIC for PageIndexChanged).
Also particularly nice for TDD-style coding is the "consume first" mode.
You toggle in with control-alt-space, and it stops the auto-complete. It prevents auto-selecting the wrong thing when you name a new class or method that's close to something that's already in scope.
Very handy in TDD tests, because the classes and methods don't exist until you've written the test.

normal intellisense with autocomplete- press space, and you get CategoryTest. Opps!



Consume first (Ctrl-Alt-Space): no auto-select (you have to click from the dropdown), and the suggestions includes "Category" even through it doesn't (yet) exist.


It then provides "Generate class" hints, and a "Generate Other" dialogue for more control.


More info at the bottom of Soma's post

posted on Friday, December 04, 2009 9:06:01 PM (Romance Standard Time, UTC+01:00)  #    Comments [0]