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

    为了避免对版本库的影响,可以自己离线的修改代码,就要脱离TFS的管理,上网找到的解决方案:
    找到*.sln文件用文本打开,可以找到:
    Global 
     
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
      Debug|.NET = Debug|.NET
      Debug|Any CPU = Debug|Any CPU
      Debug|Mixed Platforms = Debug|Mixed Platforms
      DebugLocal|.NET = DebugLocal|.NET
      DebugLocal|Any CPU = DebugLocal|Any CPU
      DebugLocal|Mixed Platforms = DebugLocal|Mixed Platforms
      Production|.NET = Production|.NET
      Production|Any CPU = Production|Any CPU
      Production|Mixed Platforms = Production|Mixed Platforms
      Release|.NET = Release|.NET
      Release|Any CPU = Release|Any CPU
      Release|Mixed Platforms = Release|Mixed Platforms
    ……
      EndGlobalSection
    EndGlobal
    将所有这些内容删除,然后修改解决方案的名称,保存,重新打开就可以离线操作了

    How to permanently remove TFS Source Control association bindings?

     

    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:

    去除TFS版本控制信息 - qiuguangchun - sandea的个人主页
     

     

    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".

    去除TFS版本控制信息 - qiuguangchun - sandea的个人主页
     

     

    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.

  • 相关阅读:
    实验4-1-5 韩信点兵 (10分)
    实验4-1-6 求分数序列前N项和 (15分)
    实验7-1-5 选择法排序 (20分)
    实验7-1-2 求最大值及其下标 (20分)
    第一次个人编程作业
    3.Vue.js-目录结构
    2.VUEJS-安装
    1.Vuejs-第一个实例
    Mybatis通用Mapper介绍与使用
    商城项目团购之定时任务2
  • 原文地址:https://www.cnblogs.com/sandea/p/3289889.html
Copyright © 2011-2022 走看看