How to permanently remove TFS Source Control association bindings?
2015-04-24 20:48
676 查看
I have faced this issue when I decided to move one of my freelance project from my own TFS to CodePlex.
To re-assign to a new Source Control, you need to remove association to old one first.
Another case when you may need this is when you renamed your TFS and your projects cannot find their code storage and you will see this warning each time you try to open these projects:
Here is how to remove this association:
1. Remove all *.vssscc and *.vspscc files from your Solution folders.
2. Check if your Solution *.sln file is Read-Only. Remove this flag if needed.
3. Open *.sln file in an editor. I prefer Windows Notepad for such operations.
4. Find GlobalSection(TeamFoundationVersionControl) looking as showing below and remove it begining with GlobalSection and ending with EndGlobalSection:
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = http://<YourTFS>/tfs/defaultcollection
SccLocalPath0 = .
SccProjectUniqueName1 = <Your Project path and name in TFS>.csproj
SccProjectName1 = <Project Name>
SccLocalPath1 = <Project Path>
EndGlobalSection
5. Save and close your Solution file.
6. Go ahead and open this Solution in Visual Studio IDE as usual.
7. If you will get IDE warning similar as shown below, just select "Permanently remove source control association bindings".
That's it! Now you can associate your code with a new TFS Project.
P.S. I tested this on VS/TFS 2010. Not sure if this works with older versions.
Referenced from: http://zayko.net/post/How-to-permanently-remove-TFS-Source-Control-association-bindings.aspx
To re-assign to a new Source Control, you need to remove association to old one first.
Another case when you may need this is when you renamed your TFS and your projects cannot find their code storage and you will see this warning each time you try to open these projects:
Here is how to remove this association:
1. Remove all *.vssscc and *.vspscc files from your Solution folders.
2. Check if your Solution *.sln file is Read-Only. Remove this flag if needed.
3. Open *.sln file in an editor. I prefer Windows Notepad for such operations.
4. Find GlobalSection(TeamFoundationVersionControl) looking as showing below and remove it begining with GlobalSection and ending with EndGlobalSection:
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = http://<YourTFS>/tfs/defaultcollection
SccLocalPath0 = .
SccProjectUniqueName1 = <Your Project path and name in TFS>.csproj
SccProjectName1 = <Project Name>
SccLocalPath1 = <Project Path>
EndGlobalSection
5. Save and close your Solution file.
6. Go ahead and open this Solution in Visual Studio IDE as usual.
7. If you will get IDE warning similar as shown below, just select "Permanently remove source control association bindings".
That's it! Now you can associate your code with a new TFS Project.
P.S. I tested this on VS/TFS 2010. Not sure if this works with older versions.
Referenced from: http://zayko.net/post/How-to-permanently-remove-TFS-Source-Control-association-bindings.aspx
相关文章推荐
- How to create a read-only user in TFS source control
- How to create a read-only user in TFS source control
- How to create a read-only user in TFS source control
- How to create a read-only user in TFS source control
- How to remove all event handlers from a control
- How To Use Git Source Control with Xcode in iOS 6
- Xcode Source Control showing multiple Working Copies How to delete?
- Source Control HOWTO
- Visual Studio 2013 always switches source control plugin to Git and disconnect TFS
- Visual Studio 2013 always switches source control plugin to Git and disconnect TFS
- How To Use Git Source Control with Xcode in iOS 7
- Example of how to implement a view-based source list (NSOutlineView) using Cocoa Bindings
- [vim技巧]How to control Firefox using Vim keybindings
- [导入]Flex with Visual SourceSafe how-to :让Flex支持VSS
- How to set bmp for your UserControl in the toolbox
- How to Add and Remove Apps
- How to Remove Guest Session in Ubuntu 16.04 Login Screen
- How to Convert PowerPoint to Flash Using Open Source Tools
- How to Install and Configure Nginx from Source on centos--转
- How to remove ActiveX Controller