Experiences and Experiments in Programming

 Monday, November 24, 2008

I see more and more development shops using Subversion.  If you are not familiar with Subversion, it is an open-source version control system.

I have recently started looking at Visual SVN.  Visual SVN is a plug-in for Visual Studio that allows Visual Studio integration when using Subversion.  While the Windows Explorer integration offered by default using TortoiseSVN is extremely easy to use, I wanted to try out direct integration within Studio.

Installation was very easy, everything at the defaults and no configuration.  I opened an existing web site project and got all the visual indicators provided by VisualSVN.  The particular site I opened was already added to Subversion.  Using VisualSVN was just as simple as in the Explorer interface.

Then I opened another web site. This web site was also already added to Subversion but I did not get any indication in the UI that the project was under Subversion control.

I did some searching and found that the difference in the two projects was that the second project, the one that did not show any Subversion status, had its solution file located in a different directory.  By default, Visual Studio will store the solution file in your Documents/[username]/Visual Studio 2008/projects directory.  By simply moving the solution file to the same directory as my web site project, Visual Studio picked up the Subversion status on all the files and worked perfectly.

You are given a hint to this requirement when trying to add a project/solution to Subversion through VisualSVN.  When you right-click on a solution and choose "Add Solution to Subversion...", if your solution file is not in the same directory, you are presented with a dialog indicating that the solution file and the solution contents must be in the same directory.  But nobody ever reads those dialogs....right?

Monday, November 24, 2008 3:19:56 PM (Central Standard Time, UTC-06:00)
Who Am I - Todd Miranda
MVP Visual Developer - ASP/ASP.NET
On this page....
<May 2019>
Aggregate Me!
RSS 2.0 | Atom 1.0 | CDF
Contact me
Send mail to the author(s) E-mail