Remove TFS Version Control

Source: Internet
Author: User

For projects that have been versioned in TFS, when the version Control service is unavailable, you will still be prompted every time you open the project: The current project is a versioned project, but the current version control is not available, Balabala information, If it is necessary to make version control of the project in the temporary inability to connect to the version control server when this hint, also belongs to the normal, but if it is no longer necessary to do version control of the project, but also the opening of such a hint, some can not stand-the key is, no TFS, only to find ways to delete.

To permanently clear TFS versioning in your project, you need to take three steps (make sure you're not using the current project before the operation):

    1. Clear (delete) All version control files under the project, which are: *.vssscc ,*.vspscc

      Delete these version control files is relatively simple, search for these suffix files, delete can;

    2. To modify a project's solution file:*.sln

      First verify that the solution file ( *.sln ) is modifiable, and if it is a read-only file, it needs to be adjusted to be modifiable. Never open a file using Visual Studio, open the file with a text editor, and *.sln in the file we will see code similar to the following:

Globalsection (Teamfoundationversioncontrol) = presolution       sccnumberofprojects = 4       Sccenterpriseprovider = { XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}       Sccteamfoundationserver = Here is your project ' s TFS       SccLocalPath0 =.       SccProjectUniqueName1 = project-unique-name1.csproj       SccProjectName1 = your-project-name       SccLocalPath1 = Project-local-path       SccProjectUniqueName2 = project-unique-name2.csproj       SccProjectName2 = project-name-2       SccLocalPath2 = Local-path2       SccProjectUniqueName3 = project-unique-name3.csproj       SccProjectName3 = project-name-3       SccLocalPath3 = Local-path3.   Endglobalsection

3. This code is the TFS configuration that is loaded when the project starts, and we want to eliminate TFS, this code must be deleted, after deletion, save the file.

    • Modify versioning information in individual sub-projects in: *.csproj (C # project, other project file suffix differs)

      Complete the above two steps, the project's TFS control information has been cleaned up almost, if it is VS2010 project, then open with 2010 will be prompted, choose to permanently (completely) remove the source control of the associated bindings, confirm the entire project to complete the TFS cleanup work 1.

      Mitchell is using VS2012, which opens the VS2013 project, and while the project is open, the above two steps are completed, but when the project is loaded, it will still appear in the Output window of VS:

    • Could not find a mapping for the solution. Could not find a mapping for the solution. Could not find a mapping for the solution. The active solution is temporarily disconnected from source control because the server is unavailable. To try reconnecting source control, close and reopen the solution when the server is available. If you are connecting to a different server, use the Change Source Control dialog box.

This problem is because *.csproj there is versioning information, which causes vs will also try to do TFS related operations, to solve this problem, you need to delete the *.csproj relevant information in the file, open the file with a text editor, you can see similar information:

<PropertyGroup>  <!--other configurations-  <targetframeworkversion>v4.5</targetframeworkversion >  <FileAlignment>512</FileAlignment>  <SccProjectName>??? </SccProjectName>  <SccLocalPath>??? </SccLocalPath>  <SccAuxPath>??? </SccAuxPath>  <SccProvider>??? </SccProvider></PropertyGroup>

The Scc* configuration above is the version control information. It can be easily and brutally deleted, after the deletion is complete, save the file.

Once we've done that, we'll open the project again with VS and we won't have any information about TFS, and we can play with vs happily.

Of course if you think this is still a problem, then you can download Mitchell write Tfseliminator tool (requires. NET 4.0 support)

Use is also quite convenient, there are two ways:

      1. 1. Command line:
      2. # at the command line, use: # application Projectroot # format to complete the removal of TFS information in the specified directory # for example: Project under D:\Temp\Test TFSEliminator.exe D:\Temp\Test
      3. To run directly, simply copy the program to the root of the project and double-click to run it.

        Note: The command line is prompted, if you confirm the path is not a problem, remember to press Enter or Y Oh ~

Remove TFS Version Control

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.