17 November 2007
Subversion on Dreamhost with Visual Studio 2005 / 2008
Posted by Mikhail Esteves under: C#; Tips .
It’s fairly simple to have Dreamhost host a subversion repository for you and use that in Visual Studio. It’s easy to setup and you get the added bonus of having your files saved in a remote location.
- Don’t have a Dreamhost account? Get one here!
- Setup a Subversion repository at DreamHost.
- Download and install TortoiseSVN on your computer.
- Download and install the TortoiseSVN and and Visual Studio Integration settings for Visual Studio from Garry’s Bit Patterns.
- Open the Visual Studio project you want to place under source control, run Clean Solution from the Build menu.
- Using the new toolbar you now have for Subversion, click on the “Add Solution” button, and you will see:
- Type in your repository URL, and a initial commit message.
- Click OK. Enter your username/password details. You’re done!
- Now close Visual Studio, browse to your project folder and delete all files there (taking a backup would be nice, too)
- Right-click in that empty folder, and in the TortoiseSVN menu, choose “Checkout”. You should see:
- Details should be automatically filled up there with your repository URL, etc. If it is not, type them in and click OK. This will bring back all your files from the repository and make your project directory a working copy.
- Your project is now on Subversion. Fire up Visual Studio, make your changes, and click Commit after a day’s work, or a important milestone has passed, type in a commit message and commit the changes. You’re all done!