Migration from AnkhSVN to VisualSVN is straightforward and requires just a few steps. Before you begin, please make sure you have installed VisualSVN plug-in versions that support multiple working copies within a single solution:
- VisualSVN 7.1 or newer if you use Visual Studio 2019.
- VisualSVN 6.5 or newer if you use Visual Studio 2017.
Migrating to VisualSVN in Visual Studio 2019
Follow these steps to migrate to VisualSVN from AnkhSVN after upgrading to Visual Studio 2019:
- Uninstall or disable AnkhSVN via Extensions | Manage Extensions.
- Install VisualSVN. Follow these steps to install the VisualSVN plug-in in Visual Studio:
- In Visual Studio 2019, click Extensions | Manage Extensions.
- Click Online on the left pane and type "VisualSVN" into the Search box at the top-right corner of the window.
- Click Download next to VisualSVN for Visual Studio 2019 in search result.
- Wait for the download to complete and click Close.
- Close Visual Studio 2019 and then click Modify button on the appeared VSIX Installer dialog. VisualSVN will be installed and active next time you open Visual Studio 2019.
- Go to Tools | Option | Source Control and select None as the Current source control plug-in. This step is required to remove the source control bindings that AnkhSVN puts into your project files.
- Open your versioned solution in Visual Studio.
- Visual Studio may prompt you to remove the source control bindings
with the following message:
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 in most of the common scenarios.
- Click Yes to remove the source control bindings. Visual Studio will clear the AnkhSVN bindings from all project files in your solution.
- Choose Extensions | VisualSVN | Commit main menu command to commit the changes made to the project files.
After these steps your solution projects will be disconnected from AnkhSVN and will become handled by VisualSVN. For example, you can now execute VisualSVN commands via Extensions | VisualSVN and via context menus. Also, you will see traffic-light status icons in the Solution Explorer. Read the VisualSVN Getting Started | Basic Work Cycle for further details.
If there are several team members working with the same solution, please ask them to update their working copies and then perform the steps 1, 2 and 4 of the above instructions:
- Update working copies to receive the AnkhSVN bindings removal.
- Uninstall or disable AnkhSVN.
- Install VisualSVN.
- Open versioned solution in Visual Studio.
Migrating to VisualSVN in Visual Studio 2017 and older
If you use Visual Studio 2017 or older versions, you need to follow almost the same instructions as given above, but relevant to your Visual Studio and VisualSVN version.
- Visual Studio 2017 users can install VisualSVN 6.x via Tools | Extensions and Updates or by downloading VisualSVN for Visual Studio 2017 from the official download page or from the Visual Studio Marketplace.
- Visual Studio 2015 users can install VisualSVN 5.x from the official download page.
Migrating solutions with multiple working copies to VisualSVN
Modern versions of VisualSVN for Visual Studio 2019 and 2017 fully support multiple working copies within a single solution. For further details see the article KB7: Using Multiple Working Copies in VisualSVN.
If you are using Visual Studio 2015 or older and your solution projects span across multiple working copies, consider upgrading your Visual Studio instance to 2019 or 2017 versions, and then follow the migration steps given above.