Wed 19 Jul 2006
Subversion and Visual Studio 2003 (ASP.NET 1.1) fix
Posted by KamenL under Uncategorized , .NETNo Comments
Those of you who use both the (excellent) Subversion open source control system, and Visual Studio 2003, are ubdoubtedly familiar with the “incompatible .svn folder” problem. Here is a quick-and-dirty solution.
By convention, Subversion holds all local source control data for a checked-out tree in hidden folders named .svn under each ‘content’ folder. This scheme, however, causes problems with Visual Studio 2003 and ASP.NET 1.1: the VS IDE has a problem when talking to the server and refuses to load projects with such folders in their structure (even though the folders do not contain any VS-readable source, but are just a facility to track history)
svn_vs2003_fix is a command-line based utility that performs a recursive rename of a given tree, renaming all .svn folder names to _svn or vice versa. This allows SVN to work with ASP.NET 1.1 in the following manner:
** Before using the source control system, invoke:
svn_vs2003_fix <the_webapp_tree_physical_folder> .
This will rename any _svn folders in the tree structure to .svn, and you’ll be able to use Subversion or any other common front end tools (such as Tortoise)
** Before doing any IDE work on the site, invoke:
svn_vs2003_fix <the_webapp_tree_physical_folder> _
Any .svn folders will be renamed to _svn; this will preserve all Subversion data (even though it will be temporarily unavailable to Subversion) and, at the same time, make the source tree readable to the VS IDE.
The utility is distributed absolutely free; get it here.