清除TFS版本控制信息

原题:

How to permanently remove TFS Source Control association bindings?

 

Ihave faced this issue when I decided to move one of my freelance project frommy own TFS toCodePlex.
To re-assign to a new Source Control, you need to remove association to old onefirst.

Anothercase when you may need this is when you renamed your TFS and your projectscannot find their code storage and you will see this warning each time you tryto open these projects:



Hereis 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 belowand 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'sit! 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.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值