Migrate Local projects to TFS - tfs

I have about 14 projects (different solution files) that are sitting on local dev box. Just got connected with TFS 2010. How do I move these projects to TFS 2010 (without getting vss involved)?

If you have Visual Studio 2005 or Visual Studio 2008 installed, then the first thing you need to do is install Team Explorer 2005 or 2008 from the TFS 2005 or TFS 2008 media. You'll then need to install the TFS 2010 forward compatibility GDR (2005, 2008) For the forward compatibility information, see this post.
If you have Visual Studio 2010 installed, then Team Explorer is installed already.
You then go to View, Team Explorer. Right click on the little "+" button to connect to a server and enter your details.
The you can either add your files by right clicking on the solution in solution explorer and sayying Add to Source Control or by going to the Source Control Explorer and pressing Add then selecting your files.

Very easy: You just add them to TFS. Right click on the files and choose "Add" from the menu and afterwards check-in. Then they are in the TFS. Of course that doesn't include automatic deployment via TFSBUILD etc.

I found the answer on these links.
http://msdn.microsoft.com/en-us/library/ms181280(VS.80).aspx

Related

VS Code integration with TFS

I'm now starting to use VS Code and I like this tool except for the fact it won't integrate with TFS.
I have looked all over the place for a solution that would be easy to use and didn't find anything good.
The solution of TFVC that offered here How to connect TFS in Visual Studio code is not what I'm looking for.
I need to have the source control explorer and to be able to right click on a file to check it in and out.
Any good solution out there?
Visual Studio Team Services Extension for Visual Studio Code is the only official solution for now.
Source control explorer is something integrated with visual studio, which do not included in visual studio code.
If you really need this feature, you could submit a uservoice here, TFS PM and Admin will kindly review your suggestion.
As a workaround, suggest you to use the tf command to do the check in option.
1.on the Tools menu, click Connect to Team Foundation Server.
2.in the Connect to Team Foundation Server dialog box, select a Team Foundation Server from the drop-down list.
3.Under Team projects, select one or more team projects from the list. Team projects with a check mark next to them will display in Team Explorer.
4.click OK.
Team Explorer displays the team projects under the selected Team Foundation Server.

Adding files to Team Foundation Server from web interface

Is it possible to add a new file (or new version of a file) to a TFS project via the web interface without using Visual Studio? There are some code artifacts, such as PS1 scripts, which we may want to keep under source control, but the owners of such files may not have Visual Studio even installed.
No, this functionality is not available in TFS 2013.
This does exist in TFS 2015 (and in Visual Studio Online), but if you are using TFS 2013, you have a few options:
Install the standalone Team Explorer. Despite the name, you do not need to have Visual Studio installed - if you don't, it will install a standalone version that can communicate with a TFS server.
Use the command-line interface. (Also available with the download above.)
Yes it is possible.
In our companies real world example we, have a CI build set up at work that does nothing but code sign powershell files. This was a huge carrot to get the systems engineers to leverage source control. The don't use Visual Studio though. They seem to like using powerGUI which has TFS integration support.
In the TFS 2015 web interface, yes, this is possible.
If you are asking how:
To add a new file, right-click on the folder (in the folder
hierarchy on the left) and there's a menu option to "Add file(s)...".
To edit a file (add a version), open the file contents in the right pane, and
there's an "Edit" button.

How do I set up the latest version of work items in TFS 2010?

How to set up the latest version of items to be downloaded on check out in TFS 2010? I use VS 2010 to connect to the server.
In Visual Studio, go to Tools – Options.
In Source control options, browse to Visual Studio Team Foundation server options. You can check “Get latest version of item on check out” box there.

No servers listed in TFS BuildNotification.exe

When I start BuildNotification, I get this balloon:
If I click on the balloon, I get the Build Status screen with nothing listed. If I click on the "options" menu, it is blank as well:
This was working when I left the office on Friday; but now I have this issue (and I'm the only one on the team who has this issue).
I checked the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\Build\BuildNotification
but saw nothing of value. (e.g. uri = "tfs.myserver.com")
I would think it would check this registry key because it has the server listed:
**HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\Instances**
How does BuildNotification.exe get the server list?
Is there a way to force a refresh of this?
NOTE: Team Explorer in Visual Studio works fine (e.g. has my TFS server info)
Also - If you have more than one version of VS installed, note that each version of TFS buildNotification is hooked up to the corresponding VS tfs repository address. I had changed address of VS2013 tfs connection (the old tfs address was shut down), but not on VS2012, thus when starting the VS 2012 buildNotification tool from system tray it could not connect to the new address of the tfs repository.
locations of buildnotification Tool for VS 2012 and 2013:
C:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\IDE\BuildNotification.exe
C:\Program Files (x86)\Microsoft Visual Studio
12.0\Common7\IDE\BuildNotificationApp.exe
Sigh.
I noticed my TFS projects weren't connected either, so I opened source control explorer and found the following option (Go Online):
Apparently, I was "offline" from the TFS server.
Only a few hours into the day and I'm already face-palming (at myself); gonna be a long week.

Windows file to TFS - How do I do it?

We're a small shop and have legacy VB6, Classic .ASP, .NET 1.2 - 3.51. We installed the product successfully, but since depending on the code which needs changing we fire up the respective IDE Visual Studio x. How do we go from no source control to TFS?
You will probably want to look at the TFS 2008 Power Tools. One of the features that is available in the Power Tools is Windows Explorer integration, so you can get/checkout/checkin by right clicking the file(s).
Your other choices are to use the VS2008 / TFS 2008 client to do your SCM operations (which means you need to switch between multiple IDEs), or you could use the TF.EXE command line to do your SCM operations.
If I misread your question and you're asking how do you get your legacy code into TFS, you'll need to go into the TFS 2008 client and do the following:
Map a workspace to a folder on your hard drive (or network).
Copy your source to the folder.
In TFS 2008, click on the "Add Files" button.
Select the folder you just copied everything into.
Add them.
Check in.

Resources