Part 2: Setting up a continuous integration environment for Visual Studio 2008 and .NET Framework 3.5 - Setting up Subversion 1.5.4 at the build machine
Last time on the part 1 of this series, we downloaded the tools required for our continuous integration environment and installed it on the server and on the developer workstation. In this part of the series, we will set up the source control server which is Subversion. After setting up the server, we will create a project repository which will basically be a simple empty folder in which we will eventually add the project or solution files.
Ok, now let's go on setting up our Subversion on the server.
But first of all, we will create a repository in the server because by default, it is not set automatically by Subversion. So fire up the command window (just run "cmd"). In the console, type in the following command:
svnadmin create "D:\Repository"
It should look like below:

After executing the command, you can check if the repository was created. You can now close the command window. Before we did this, the D:\Repository folder was empty. After creating the repository, go check the folder yourself. It should contain the "conf", "db", "hooks", "locks" folders and 2 other files. Are they there?
Ok, so they are there. Now let's do some work on the configuration file and the auth file of the repository. Go ahead and open the "svnserve.conf" file which is located at "D:\Repository\conf" folder. Just open it with notepad. The contents of the file should look like below.

Now uncomment the following lines:
[general]
anon-access = read
auth-access = write
password-db = passwd
It should now look like the contents as seen below:
Save the file and close it. The second file to configure is the "passwd" file located at the same folder (D:\Repository\conf). Go ahead and open it up with notepad.
But, who are sally and harry? Well, like you, I also don't know (unless you know a sally and harry which I don't think they are the ones here). So let's just delete them right? Go ahead. Now under the [users] line, just write your name or nick name ... let's say you are joe. And aside from a name, you will need a password ... let's say your password is joepassword. This serves as the authentication when you will commit your source to the repository. So be sure to remember them (you can just open this file anytime in case you forget).
So the file should look like this now:
Now save that file and close it. You're done setting up the source control server! So easy eh? Hhhmmm.... So what's next? Go to your developer workstation. We will be creating a folder for our project at the repository using the TortoiseSVN client installed in the developer workstation. If it is not yet installed, read the part 1 of this series to install it.
Ok, it is installed right? So are you ready?
Let's create a folder named Account. You are free to choose any location. For me, I will choose the location "E:\Codebase". Let's create an Account folder on that location. After creating, right-click at any part of the window and point your mouse to TortoiseSVN and then to Repo-browse. See below.

The dialog box will appear asking for the location of the server with the repository. It basically is asking "Where did you install the Subversion server?". I assume you already know its location. In my case, the machine where I installed Subversion has the IP address of "192.168.1.3". Since we are using the svn port, we will prefix the IP address with "svn://". See below.

Now the Repo-browser (short for Repository Browser) will appear. So let's create the project folder shall we?

Right click at the right-pane of the window and select "Create". See below.

After that, a dialog box will pop-up asking for the name of the folder.
In our case, we will enter "Account" and click "OK". After clicking
"OK", a Message Log dialog box will pop up which asks for a message. Well, let's just type in "created new project folder" and click "OK".

After clicking "OK" an authentication box pops up asking for our credentials. Remember joe and his password joepassword? Enter them there and click "OK".
The folder should be created by now.
By the way, when this folder is accessible using the URL of "svn://<your server IP>/Account".
Now let's give source control a try.
While you are at the developer workstation, right-click at the Account folder you created a while ago (in my case it is located at E:\Codebase\Account) and select "SVN Checkout".
A "Checkout" dialog box will pop up. Now you can see that the Account folder we created at the repository is now accessible at "svn://<your server IP>/Account" (in my case it is svn://192.168.1.3/Account). Click ok.
Below shows that we have successfully check out the project. Good!
After checking out, notice a checked green circle on the folder? It means everything's up to date (of course it is! we have not added any files yet or modify anything in it).
Let's go on and create a new text file named "test.txt" and type anything inside the file. Save it to the Account folder.
Notice the question mark on the file? It basically means that the repository does not have a certain file like it yet. Go ahead and right-click on the file and point the mouse to "TortoiseSVN" and finally, click "Add".
Now something like this pops up. Just click "OK".
This one says, the "test.txt" file was successfully marked as "added".
Now, you can see the blue plus (+) sign. This means the file is marked as "added" but not yet commited to the repository.
Now let's commit the file to the repository. Go to the Account folder (mine's at E:\Codebase\Account"). Notice the red circle and an exclamation point? It means that a change happened inside the folder and was not yet committed to the server.
Let's do it! Right-click on the Account folder and click "SVN Commit".
A window pops up. You can put the message or leave it alone. You can go click "OK" right away.
The server will ask for the authentication when you commit. Now enter joe and joepassword for the username and password and click "OK".
Finished commiting the file to the server! There you go! By this time, you should see the green checked circle on the Account folder which means, everything's up to date. Notice this is revision 2.
Now, I'll leave some tasks to yourself such as updating the Account folder for the latest files, etc. That's all for it! You have now setup the repository with Subversion and a project folder which we will be using on the next few parts. Piece of cake right? 
In the next part of this series, we will be adding a BankLogic project to the repository and set up CruiseControl.NET at the server.