How to use Subversion with Visual Studio
Posted in Other , SEP , SLIITIn this article we're going to talk about how to use Subversion with Visual Studio. In this article I'm going to use TortoiseSVN as the SVN Client, Slik SVN as the SVN Server and Visual Studio 2012.
Why do we need Version Control ?
Can you remember the last time you had to work on one file with several people? Remember how you had to reverse engineer an undocumented bug? Remember how software projects go berserk when planned ungracefully? It happens a lot. Unless you use version control.
You have to download following tools in order to use Subversion with Visual Studio.
Slik SVN
Slik is a full service internet company. They build web software and manage online services. They run their own network and manage their local internet registry (LIR) as well as their domain names. That means Slik has pretty much all it takes to run stable online environments and manage version control software.
You can create your SVN account from HERE for FREE
TortoiseSVN
It's intuitive and easy to use, since it doesn't require the Subversion command line client to run. And it is free to use.
You can download TortoiseSVN Client from HERE for FREE
VisualSVN
VisualSVN is a professional grade Subversion integration plug-in for Visual Studio.
You can download VisualSVN Client from HERE for FREE
Installation and Integration
Install TortoiseSVN and VisualSVN respectively. If you are installed them correctly you can see the VisualSVN Extension in the Visual Studio's Extension manager window like this..
Adding the project to your Repository
First create a directory on your hard drive (This is your repository directory). Then you need to checkout the SVN repository into the directory that you've created. You can do it by right clicking on that directory and selecting the SVN Checkout... like this
Then you have to enter your repository path in the next window
Then click ok button to proceed. Then sometime you will get a window asking for username & password. Give the username & password that you've given in the Slik SVN account creation process. Make sure to tick the save password. And you might get this window about 4-5 times continuously. Please provide the username & password correctly each and every time.
Then the TortoiseSVN client will checkout the files in the repository.
Now copy your project in to your repository directory and commit the changes by right clicking and selecting the SVN Commit... Then your project will successfully uploaded to your SVN repository.
Updating your project
After opening the project from Visual Studio, you can do this by right clicking on the project in the Solution Explorer and Selecting Update..
Committing your project
You can do this by right clicking on the items with changes which are highlighted in the yellow color in the Solution Explorer and Selecting Commit..
That's all for today.. Happy coding..!!
If you gain some knowledge from this lesson and if you think this is useful leave a comment to encourage us. Good comments or bad comments all are important to usLets meet from a new lesson soon, have a nice day!!!