Visual Studio version Management migrating from TFS to SVN

Source: Internet
Author: User

1. First to disarm the solution's TFS bindings

Clear (delete) All version control files under the project, which are: *.VSSSCC,*.VSPSCC
Deleting these version control files is simple, search for these suffixes of the file, delete it.

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


(1), first to confirm that the solution file (*.sln) is modifiable, if it is a read-only file, you need to first adjust to modifiable.

(2), do not use Visual Studio to open the file, using a text editor to open the *.sln file, in the file, we will be able to see a code similar to the following:

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>
    ...
&NBSP;&NBSP;&NBSP;...
    ...
endglobalsection

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

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

(1), similar to the following code:

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


(2), the above scc* configuration is the version control information. You can delete it and save the file after the deletion is complete.

2. Add the following configuration in the solution file SLn

Globalsection (extensibilityglobals) = postsolution        visualsvnworkingcopyroot = .    Endglobalsection 

3. Open a solution with Visual Studio to add SVN solutions and projects

Reference:

http://blog.csdn.net/zy0421911/article/details/51747281

Visual Studio version Management migrating from TFS to SVN

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.