Wednesday, April 16, 2008

Getting AnkhSVN to work with VS2008

For our project, we are using SVN as our code repository, integration with VS2008 can ba achieved by VisualSVN, but you have to pay for it. A free alternative is AnkhSVN, but after installing it, it works perfectly in VS2005, but won't show up in VS2008.

The fix is to get the registry settings found in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\AddIns\Ankh

and put them into
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\AddIns\Ankh

here follows a snippet you can paste into a new .reg file and execute on your machine (assuming that you installed AnkhSVN in the default location "c:\program files\AnkhSVN"

*begin snippet*
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\AddIns]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\AddIns\Ankh]
"SatelliteDllPath"="C:\\Program Files\\AnkhSVN\\"
"LoadBehavior"=dword:00000001
"CommandPreload"=dword:00000001
"AboutBoxIcon"=""
"CommandLineSafe"=dword:00000000
"Description"="Subversion addin for Visual Studio .NET 2008"
"FriendlyName"="AnkhSVN"
"SatelliteDllName"="BitmapDll.dll"
"AboutBoxDetails"="Please visit http://ankhsvn.tigris.org for more information



Below is the version information for the various AnkhSVN components

AnkhSVN 1.0.2.2778

OpenSSL 0.9.8a

Neon 0.25.5

ZLib 1.2.3

Berkeley DB 4.4.20

Subversion 1.4.5

Ankh 1.0.2Final

apr-iconv 0.9.7

apr-util 0.9.12

apr 0.9.12"

*end snippet*