Tuesday, December 8, 2009

AnkhSVN for Web Sites

AnkhSVN won't allow you do versioning control on any files or folder that are not a sub directory of your project. The problem is when you create a "New Web Site" in Visual Studio (at least in 2008) it creates your project file in the path "Visual Studio 2008\Projects\WebSite1" and your files are created in "Visual Studio 2008\WebSites\WebSite1".

The trick is to not use "New Web Site" from the File menu. You must create a project first then add your website as a sub directory of your project.

1) Create a Project (File->New Project): 2) Be sure to check "Add to Subversion" 3) Then add your web site (File->Add->New Web Site). Just make sure you make it a sub directory of your project folder.

No comments:

Post a Comment