Solution to confusion between project files and TFs server ing

Source: Internet
Author: User

 

Use team Foundation server for managementCodeWhen the project file is offline, and the update operation is not performed in a timely manner; or, because the source control in the team explorer bar accidentally adds the folder originally associated with the server to a new directory ......, In a word," The project file and the mapping of the TFS server are messy! "

 

In such a situation, you don't have to worry about it. In fact, in many cases, even if the situation is worse, the problem will be solved as long as you follow a certain operation process, and you have done it for a long time, finally, with the help of my colleagues, the process was smoothly clarified. The process is as follows:

 

1. Disconnect your project from the TFS Server:

File-> source control-> change source control-> select a project or solution-> unbind.

 

 

2. Exit Visual Studio.

 

3. Perform the Undo pending change operation on the problematic subfolders:

You can roll back the corresponding relationships of some files or folders caused by incorrect hands to ensure the correctness of the server version.

 

 

4. Check whether the code management of the project is in the correct Workspace:

Open File-> source control-> workspaces..., double-click the current workspace, and check whether the working folder contains the directory where the project is located. If not, add the folder mapping.

 

 

5. Back up all engineering files:

The following operations may involve overwriting local project files. If you have made many modifications to the project files, the consequences can be imagined without backing up the files.

 

6. Get all files of the project from source control:

Choose whether to overwrite the Code directly or check out according to your situation, and perform Code overwrite or merge operations as prompted in the pending change column.

 

 

7. rebind the project to the TFS Server:

Choose File> source control> change source control> select a project or solution> bind.

 

 

8. Exit Visual Studio:

After the project is started again, the mapping file should have been created with the server.

 

9. Restore the modification to the project file:

Find the modified file from the backup and overwrite the file to the corresponding directory. Remember to re-compile the project and check whether it is correct before performing the check in operation.

 

Finally, in order to avoid the above problems, we should ensure that the project files should be modified online as much as possible and updated in a timely manner, at the same time, do not add the project file to source control, or back up the file. OK. Good luck ~ 

 

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.