zoukankan      html  css  js  c++  java
  • 清除TFS版本控制信息

    http://blog.csdn.net/feihu_guest/article/details/8442434

    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:

    [plain] view plaincopy
     
    1. GlobalSection(TeamFoundationVersionControl) = preSolution   
    2.    SccNumberOfProjects = 2   
    3.    SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}   
    4.    SccTeamFoundationServer = http://<YourTFS>/tfs/defaultcollection   
    5.    SccLocalPath0 = .   
    6.    SccProjectUniqueName1 = <Your Project path and name in TFS>.csproj   
    7.    SccProjectName1 = <Project Name>   
    8.    SccLocalPath1 = <Project Path>   
    9. 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.


    使用过程:我下载的vs2012的解决方案,用vs2015打开,因为这个是Team Foundation 项目的缘故,每次都提示连接服务器,如图1,图2所示。很麻烦啊,就想清除掉这些信息,一、删除掉MVC 项目下的web文件夹下的 *.vspscc文件,二、打开sln文件,删除掉以下代码,保存再打开就好了。

    1. GlobalSection(TeamFoundationVersionControl) = preSolution   
    2.    SccNumberOfProjects = 2   
    3.    SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}   
    4.    SccTeamFoundationServer = http://<YourTFS>/tfs/defaultcollection   
    5.    SccLocalPath0 = .   
    6.    SccProjectUniqueName1 = <Your Project path and name in TFS>.csproj   
    7.    SccProjectName1 = <Project Name>   
    8.    SccLocalPath1 = <Project Path>   
    9. EndGlobalSection  
  • 相关阅读:
    条形码分类
    ubuntu下配置j2ee开发环境——sunjdk1.6的安装
    折腾的这几天
    Windows Phone 8 开发环境搭建
    Windows Phone SDK 8.0的安装软硬件配置要求
    ubuntu连接无线网遇到的错误和解决思路总结(无具体过程)
    解析html标签并转化成图片
    javaIO的类备忘
    ubuntu下配置j2ee开发环境——sunjdk1.7的配置
    Jmeter之JDBC Request及参数化
  • 原文地址:https://www.cnblogs.com/zkwarrior/p/4825288.html
Copyright © 2011-2022 走看看