tags:

views:

337

answers:

3

How do you check in code for the first time in Team Foundation Server?

I created a local path, dropped some code in it, now what? Hitting refresh doesn't help.

+2  A: 

you have to right-click on the solution in your project explorer and select "Add project to source control". Then it will walk you through the process of adding it to TFS.

rwmnau
+1 That worked great! Thanks. Now, hypothetically, lets say I have some Ruby files in a separate folder (not a project) how would I check those in?
tyndall
Another poster mentioned it, but in the Source Control viewer in Visual Studio, there are "Add files" and "Add folders" buttons on the toolbar that let you add files that aren't part of a project.If you don't have VS, another option is http://www.teamprise.com
rwmnau
+2  A: 

If you just want to add files to source control without using a solution, then you need to actually add them to TFS. TFS will only show the files it knows about in source control.

In the Source Control Explorer window there should be an add file button. You can hit that and use it to add files/folders to source control.

Herms
+2  A: 

I would also suggest you install the latest edition of Power Tools for TFS - which includes the Windows Explorer Shell (you need to select custom install for that). This will add a context menu in Windows Explorer for directories that are mapped to a Workspace - so you won't have to start Visual Studio to do simple file manipulation like this.

The download is here: http://msdn.microsoft.com/en-us/tfs2008/bb980963.aspx

fuzzbone
+1 - You, sir, are my hero. I've wanted something like TFS/explorer integration for a while now. Thanks!
Herms
+1 very cool. Thanks
tyndall