How to check out from tfs on a new machine - visual-studio-2010

my machine died. I need to download the source to a new machine. I cannot access the old workspace on the new machine. There is no source on this new machine. I need to grab it from TFS 2010 basic.
What do I do??

First, you will not be able to access the old workspace on your new machine even when you do get a connection. You will be able to download any changes that you had checked in but not changes that you had made and not checked in.
You will need to connect to your TFS server from Visual Studio on your new machine. From the Team menu item select "Connect to Team Foundation Server..." and then connect to your TFS server. At that point you should be able to get latest like you had on your old box.

Related

Setup a local TFS/TFVC repository in VS2015

I want to create a new project in VS2015 and set it up to use TFVC instead of Git.
I changed the source control plugin to Visual Studio Team Foundation Server from Tools->Options->Source Control->Plug-in Selection, and I created a new project with "Add to Source Control" checked, but the project is still created with a Git repo.
I also tried adding a server connection from Team Explorer->Manage Connections->Servers...->Add..., but there was no server at http://localhost:8080/tfs (I assume it's not install by default).
My question is how can I work on a TFS repository that is local to my computer (it's OK to use a server so long as it's on localhost).
You have to install Team Foundation Server on your local computer.
This is a separate download and not a part of Visual Studio.
According to the system requirements, TFS (starting with 2013) can only be installed on a 64-bit OS. You don't need to install SharePoint or any other part of TFS that you won't use (like for example Build Services).
You also need an instance of SQL Server running on your local computer. TFS will create a bunch of databases on this instance where it stores its internal data. If you don't have a license for SQL Server, you can use the Express Editions of TFS and SQL Server both for free. These Express Editions are recommended by Microsoft (see previous links) if you plan to use TFS only on you local computer, but of course you can use a paid edition as well if you need some special feature.
After installing TFS you have to create a Team Project Collection in the TFS Administration Console which can be found in the Start menu. Then add a new connection in the Team Explorer as shown in your screenshot and create a new Workspace (Source Control Explorer --> Workspace --> Add) with a Working Folder that matches the local directory containing your source files.
The URL of the TFS is the one that was set in the Application Tier of the TFS Administration Console. (http://localhost:8080/tfs is the default URL.)
As far as I know it's not possible to use a TFS/TFVC without installing and configuring a full Team Foundation Server reachable by a URL, but of course anything can be limited to be usable only on your local computer.

Remove TFS mappings

I am using Visual Studio 2015. Initially I installed TFS 2013 on my local machine with source control mappings to my local User folder. After some time there was a need to include some more developers to my project so I installed TFS 2013 on a server running Windows Server 2012.
Then I UnBind my solution from local TFS and tried to add it to the TFS on the server. But it was only taking my local TFS, so I uninstalled TFS from my local machine. But then again when I tried to add my solution to the TFS on server, it gives the error shown in the image.
Then I removed my workspaces as mentioned in MSDN here
and here and then restarted my local machine but the error is still there.
Although I am creating the new workspace with exactly same name and place but when I have removed the older workspace and TFS from my local machine, wouldn't the error be removed!
May be TFS marked the workspaces somewhere in Computer registry but I don't know it. Kindly help me to solve this issue.
AWAIS is my local machine name
awais:8080/tfs was my older TFS that was on my local machine but I
already uninstalled it
You can use tf command-line to remove old workspace which clears cache as well:
tf workspaces /remove:* /collection:http://awais:8080/tfs/DefaultCollection
If it does not work, try removing from your connections on Team Explorer, deleting the local folder and clearing your cache
Use TFS Sidekicks to track the workspace, it is a great tool to manage the workspaces.

How to switch TFS server for TFS PowerShell Extension

How do you switch the TFS server in the TFS PowerShell Extension?
I have been using the TFS PowerShell extension for quite some time and we recently moved to a different TFS server. The extension seems to still be pointing to the old server because it gives me an error message that the collection has been stopped. I switched the Team Foundation Explorer in VS to the new server and that works fine but this TFS PowerShell extension refuses to cooperate and wants to keep pointing to the old server. How do I repoint to the new server? Is there some INI? Some CONFIG file I need to change? Some registry entry?
try clearing your cache
# C:\Users\JusttTFS\AppData\Local\Microsoft\Team Foundation\4.0\Cache

Error after restoring TFS database to new hardware

I am using TFS 2012. I wanted to test how i can recover from server failure or any hardware failure, So i wanted to shift TFS to new PC.
I followed some articles to restore it. what i did is
1)I had full backup of TFS_configuration and all other collection database.(backup taken using TFSbackup.exe)
2)In new PC i installed all the softwares(such as TFS 2012, sql server etc).
3)created all the windows user account as in old server.
4)When I checked the New PC it had default collection created which was mapped to sql server which i installed.
5)Now i deleted that default collection and restored all databases of my old TFS server(TFS_configuration and all other collection database.)(backup restored using TFSrestore.exe)
6)Now when i checked TFS administrative console it had all the collections as my old server.
7) But when i click on Administrative security, group membership etc I get error like
TF30046: The instance information does not match. Team Foundation expected 368f7830-1c67-4c4c-8bc4-ba3d5b5a5543 which was not found. Please contact your Team Foundation Server administrator.
In this link it was mentioned to change service host id in table. But it didn't work for me.
So please help
You mistakenly configured TFS (in fact it created a default collection). If read carefully Move Team Foundation Server from one hardware configuration to another, you have to run the AT-only Configuration Wizard after restoring the databases.

Visual Studio 2010 Team Foundation Server Source Control Issue

Source control is acting wierd.
Here is the scenario:
I had to reformat my computer. I backed everything up first, then blew it away. All of my backup is located on a virtual harddrive on the network, which I can connect to in order to grab what I need temporarily.
I have re-added my website / project to the same file location but now source control doesn't seem to be working.
I have made some edits which I believe the second developer does not have.
Also, the second developer has made some new edits to the website and because I am not properly hooked in to source control I cannot get those changes.
Does anyone have any ideas on what the problem could be?
Your local machine keeps a cache of the server and local workspace configuration - you will need to rebuild this cache. In addition, your Team Foundation Server workspace is tied to your original computer (workspaces are uniquely identified by your local hostname, the workstation name, and your username.) If your hostname has changed on your new computer, the server will not be able to find your existing workspace and thus it will not be able to participate in source control.
If your hostname is the same and you have copied all of your source tree over to the identical location, you should be able to simply rebuild your workspace cache on your new machine. As soon as you connect to the server (using Team Explorer in Visual Studio, or with the tf command line client) your workspace cache will get rebuild and you should have a copy of the pending changes you had on your old computer.
If, however, your workstation's hostname has changed, you can update the the hostname associated with your old workspaces. You can do this by running the command:
tf workspaces /updateComputerName:oldComputerName /collection:http://tfsserver:8080/tfs/MyCollection
Finally, you have one other option: you can simply create a new workspace and copy your changes in. You would do this by creating a new TFS workspace, getting the latest version of the code to a different directory, copying your changes over, and then detecting those changes and pending them to the server by using tfpt online from the Team Foundation Server Power Tools.

Resources