Using Subversion source control with MonoDevelop

April 12, 2008 at 10:33 pm 8 comments

This article describes how to integrate Subversion source control with MonoDevelop. Subversion has several methods of accessing a repository. In this example, we will be using accessing the repository directly through the local file system. This means the repository sits on the local machine you are working on.


The following software must be installed.

  • MonoDevelop
  • Subversion

Creating a Subversion Repository

First we need to create a repository where we will store our source code. There appears to be no way to create the repository within MonoDevelop, so you will need to run this from the command line (replace <myhomedirectory> with your home directory.

svnadmin create <myhomedirectory>/subversion

This creates a repository “subversion” in your home directory (note: the default file system is FSFS).

Adding the solution to the repository

Once the repository is created, We can add the solution to the repository.

  1. Launch MonoDevelop.
  2. Open the solution.
  3. In the solution View, right-click on the solution and select Version Control->Publish. This brings up the select repository dialog box.
  4. Click on the “Registered Repositories” tab.
  5. Click on the add button.
  6. Enter the name of the Repository such as “subversion”.
  7. Set the protocol to “File”.
  8. Set the URL to file:///<myhomedirectory>/subversion.
  9. Press OK. This closes the Add repository.
  10. Select the repository and press OK. You will be asked if you want to publish the project into the repository.
  11. Answer Yes.

The solution is now added to the repository.

Using the source control

Now that the solutions has been added to the repository, all of the source files are now under source control. Right-click on any of the file and select Version Control. You can now update, diff, or revert file changes.


Entry filed under: Mono, subversion.

Installing MonoDevelop 1.0 on Suse 10.3 Organizing NUnit Test in a .Net or MonoDevelop Solution

8 Comments Add your own

  • 1. ahb  |  July 6, 2008 at 7:07 am

    Thanks a bunch, a nice small tutorial to get me started!

  • 2. Pawprints of the Mind  |  November 10, 2008 at 8:57 pm

    Some GTK# Tips…

    I’ve been playing with MonoDevelop, theoretically learning a bit of C#, but I’ve mostly ended up learning more about GTK+ development. I chose to create a little text editor, not because the world needs more of them, but because it’s too simple to m…

  • 3. Ross  |  July 30, 2009 at 9:16 pm

    Thank you very much. I’ve tried to get this working in the past, but always failed–you made it seem very easy.

    You’re a life-saver!


  • 4. Havok  |  May 26, 2010 at 1:55 am

    Heee… and when I made changes… how I do a commit back to the repository?


  • 5. Royston  |  June 8, 2010 at 7:39 pm

    very well explained and made it easy to use.. thanks a lot

  • 6. Royston  |  June 8, 2010 at 7:54 pm

    I would like to know how to commit back to the repository as well

  • 7. Royston  |  June 8, 2010 at 8:00 pm

    Hey I found it you need to go to the main solution right at the top and commit it.. Thanks for the tutorial…

  • 8. Someone  |  April 28, 2013 at 8:22 pm

    A nice tutorial. However, I’d like to know how to use the plugin for an existing repository. The plugin doesn’t seem to work that way. That is. Say you have a repository with several projects in a branch. Say you checkout the whole branch and then want to use mono to edit one of the projects. the plugin seems to get completely confused and can’t handle it. At least I can’t seem to find a way. You have to check out that specific project in a completely different directory. Which is a gigantic pain.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


April 2008
« Feb   May »

Most Recent Posts

%d bloggers like this: