In most cases, migration from AnkhSVN to VisualSVN is easy and hassle free. But in certain cases you may experience technical issues caused by AnkhSVN bindings in the project files of your solution. The article describes the correct steps to migrate from AnkhSVN to VisualSVN and solve any possible issues.

Perform the following steps to migrate from AnkhSVN to VisualSVN:

  1. Close all instances of Visual Studio.
  2. Uninstall AnkhSVN.
  3. Install VisualSVN.
  4. Open Windows Explorer and remove the solution user options (.suo) file in your solution folder.
    Warning The solution user options (.suo) file contains user specific settings such as location of the breakpoints. These settings be lost when you delete the .suo file.
  5. Start Visual Studio and open your solution.
  6. Visual Studio will prompt you to remove the source control bindings with the following message:
  7. The source control provider associated with this solution could not be found. The projects will be treated as not under source control. Do you want to permanently remove the source control bindings from the projects?
  8. Choose Yes and Visual Studio will clear the AnkhSVN bindings from all projects files in your solution.
  9. Choose VisualSVN | Commit main menu command to commit the changes made to the project files.
  10. Your solution will be disconnected from AnkhSVN and become handled by VisualSVN.
Note If AnkhSVN is still used by other team members, ask them not to execute the Add Selected Projects to Subversion... and Add Solution to Subversion... AnkhSVN's commands. These are the commands that place AnkhSVN bindings into the project files. Note that AnkhSVN should function properly without these bindings.

Technical background

AnkhSVN bindings are stored directly in the project's file (e.g. *.csproj for Visual C# projects and *.vcproj for Visual C++ projects) and are also cached in the solution user options (.suo) file. For some reason these bindings lead Visual Studio to confusion when you approach to migrate to VisualSVN. The problem is indicated by one of the following warning messages:

The project 'project-name' is under source control. An error occurred registering this project with source control. It is recommended that you do not make any changes to this project.
One or more projects in the solution were not loaded correctly. Please see the Output Window for details.

The problem occurs for all the projects with AnkhSVN bindings and prevents these projects from being loaded (these projects become marked by "load failed" text in the Solution Explorer).

Last Modified: