12. března 2012 15:45
Is there any way in Visual Studio/TFS 2010 to remove a Solution from Source Control WITHOUT deleting the local copies of Files/Folders? Removing the mapping, Deleting from Source Control Explorer, or Removing the Workspace all seem to delete source files from my local machine.
If I mistakenly put a Solution under TFS Source Control, and I want to take it back out and retain all the source code locally, how is that accomplished?
12. března 2012 17:49
I can't think of a good way to do this other than through this manual approach:
- Open the Visual Studio solution and unbind the solution and all projects from source control (from Files >> Source Control >> Change Source Control). This will remove all TFS bindings from the project.
- Manually move the solution directory and its contents to a temporary directory outside of your TFS workspace.
- In TFS Source Control Explorer (SCE), do another GET SPECIFIC VERSION on the solution directory. Select "Latest Version" and check "Overwrite all files even if the local version matches the specified version".
- In Source Control Explorer, delete the project and check-in.
As an optional step, you could move the solution directory back into your TFS workspace (from step 2); however, I typically don't recommend keeping version and non-versioned files together in your TFS workspace directory because it makes it harder to distinguish.
Hope this helps!
- Označen jako odpověď MarvinPerkins 12. března 2012 17:57
12. března 2012 17:57
I was kind of coming to that conclusion, Matt. Thanks for confirming.
20. října 2012 16:54
Actually this problem is almost occurred in our computer. So “Long Path Tool” is give us a nice toolbar LONG PATH Error Fixer. It’s can help us for delete/ copy/ remove….. File. Thanks.