On the heels of the aforementioned fantastic tool SVNOneClickSetup, I discovered AnkhSVN, a Visual Studio add-in that integrates Subversion version control.
Get it here:
http://ankhsvn.tigris.org/
These two tools combine to make a version control solution that's incredibly easy to configure and use. I've never used Subversion before in my life, and within 20 minutes I remotely set up my home server, had 2 projects in my repository, and had 2 remote client PCs connected and able to check out & commit. Try doing that with a VSS 6.0 or 2005 server setup.
The problems I ran into were pretty minor; Tortoise doesn't like to copy folders recursively when dragged into a repository from Windows, and getting VS & Ankh to recognize version control bindings didn't work exactly like I thought it would. Before you jump in, here are a few tips to get you past the initial snags you might encounter:
- AnkhSVN's Visual Studio integration magically seems to work better if you install the latest version of TortoiseSVN first.
- When you install SVNOneClickSetup, do let it create the default project that it wants to. Name it something like "ProjectTemplate" and leave it exactly the way the installer creates it; it will created tags, branches and trunk subdirectories for you.
- When you want to create a new project, first use Tortoise to make the directory: hit Start -> Run -> [ svn://your.svn.server:3690/ ] (or whatever port you're running it on). In the TortoiseSVN browser, right-click your "DefaultProject" folder and select "Copy to." Enter svn://your.svn.server:3690/YourNewProjectName.
- Now open your solution in Visual Studio; right-click the solution node in Solution Explorer, and select Ankh -> Add solution to Subversion repository.
- Put the solution at svn://your.svn.server:3690/YourNewProjectName/trunk.
Enjoy!
No comments:
Post a Comment