My server folder mapping with the local folder got somehow removed in TFS and now the TFS is not permitting me to remap it to the same folder - tfs

My server folder mapping with the local folder got somehow removed in TFS and now the TFS is not permitting me to remap it back to the local folder again displaying the below message:
The path C:\Folders is already mapped in workspace Ashley
I tried removing files from cache folders present in %localappdata%\Microsoft\Team Foundation\x.0 folders but it did not help. I then renamed the $tf folder within C:\Folders but that too was of no use.
Any help will be greatly appreciated.
Thanks

Related

Why doesn't TFS download subfolders if they are mapped elsewhere

I have a few environments setup that connect to TFS through an eclipse based IDE. I have the main project folder mapped to a local folder and I have 2 subfolders mapped to a different place locally. For some reason on only one of the environments when I perform a get operation, the subfolders that have been mapped additionally are not downloaded on both the main project folder and the external mappings.
I have tried recreating the workspace, removing the mapping, to re-install TFS 2012
What could be the possible culprit?
Have no business with subfolders if they are mapped elsewhere. You just make sure to perform a get operation at one or more level up of that subfolders.
In you case, you could first check the mappings for main project folder and 2 subfolders. Make sure they are in a same workspace.
Then try to get root folder in that workspace, check if this work.
Also try to clear TFS cache in your dev machine, which may do trick.
If all of above still not work, suggest you use get command line to download the folders, add /recursive such as tf get $/Project/Main/recursive
Recursively gets items in the specified directory and any
subdirectories.

TFS mapping on the working folder is already in use

I wanna get a solution from TFS 2013 in VS 2017 but there's an error:
I've deleted my work space but it didn't work;
You need to edit your current workspace and map to another local folder:
Team Explorer > Under Solution click the Workspace dropdown arrow > Manage Workspaces... > Select your current workspace > Edit > Change the local folder to a folder.
UPDATE:
Did you also delete the local mapped folder? If not you will see the error. So, the workaround is mapping current workspace to a new local folder, or cleaning (delete all the files) the old mapped local folder, then remap current workspace to the old local folder again.
Finally I find the solution. The only way to resolve this issue is changing the computer name.

How to fix broken TFS working folder

I don't know how, but TFS is claiming files in the same workspace folder are mapped to different local directories. The TFS client is showing me a working dir but some files are mapped to a sub-dir when I do compare/check-in operations.
I have tried to remove and reinstate the workfolder mappings but it hasn't helped.
Possibly files checked out for edit before a workfolder is remapped are to blame?

exclude bin folder from Team Explorer Everywhere

How can I exclude the bin folder from Check in and Check Out from TFS version control in the TFS plug-in for Eclipse?
The bin folder should already be ignored by TFS unless everywhere is configured differently. Do possibly mean that the bin folder is already checked in and you don't want to manipulate it any more? If that is the case simply delete the bin from tfs and it will stop prompting you for check out/check in. Bin folders typically are not under source control
You can use a .tpignore file to ignore files. The easiest way to add the bin directory to your .tpignore is to simply right click on the bin directory in Package Explorer and select the "Ignore" option in the Team menu.
I had the same problem, I added the following to the .tfignore file
/bin/
/bin/.*
/bin/classes/*
I had to include the classes directory explicitly because it continued to appear in the pending changes.

tfs: delete files on the repository server and leave them locally

I have accidentally checked in some files that I meant keeping locally on my machine.
How do I delete them from the repository but leave a local copy of them in my solution ?
Thanks a bunch
There's the obvious brute-force solution of copying the files to a temporary location, fixing source control, then adding them back in to your project.

Resources