Add a solution to a repository

To start versioning a new project or solution, or an existing one, add it to a Subversion repository.

Important: You must first create a Subversion repository from outside the Visual Studio environment. You can do this using a Subversion client such as TortoiseSVN, or the command "svnadmin create <repository_path>" at the Subversion command line.
  1. Open your solution in the Solution Explorer.
    • If you've just created a new project or solution, it is automatically opened in the Solution Explorer.
    • For an existing project or solution, choose File > Open > Project/Solution and browse to it.
  2. Right-click your solution and select Add Solution to Subversion. To add specific projects rather than the containing solution, you can select Add Selected Projects to Subversion instead. The Add to Subversion dialog appears. The project's name and location of your working copy are filled in.
    Add a solution to a repository
  3. Supply these details:
    1. Specify the URL to your Subversion repository. Select a URL from the dropdown or enter one. For example, https://demo.collab.net/svn/repos.
    2. To add the solution to a new subdirectory, select the Create Folder option, and enter a directory name and log message.
    3. If you intend to create branches to the main line of development, you will probably want to create a trunk folder to store the main line. To do this, check the Add trunk folder for Project option.
    4. Click OK.
    Another dialog appears, prompting you for a log message.
    Enter a log message when adding a solution to a repository
  4. Enter a log message and click OK.
Related actions
Check out a solution
More information
TortoiseSVN Daily Use Guide - Repository Layout