Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstall AnkhSVN from VS2012

Tags:

I want to remove AnkhSVN from my VS2010 install, but find that the Uninstall option is grayed out when I navigate to TOOLS*/Extensions and Updates.

Starting Visual Studio 2012 as Administrator and unselecting AnkhSVN as the source control provider did not enable the Uninstall option.

*I'm not shouting TOOLS, just trying to get in the spirit of the new UI :-)

like image 296
Eric J. Avatar asked Sep 10 '12 17:09

Eric J.


People also ask

Why can't I uninstall Microsoft Visual Studio?

If you experience a catastrophic error and can't repair or uninstall Visual Studio, you can run the InstallCleanup.exe tool to remove installation files and product information for all installed instances of Visual Studio 2017, Visual Studio 2019, or Visual Studio 2022.


1 Answers

AnkhSVN apparently cannot be disabled or uninstalled from within Visual Studio 2012.

Do the following instead:

  • Close all instances of Visual Studio.
  • Run the AnkhSVN uninstaller.

Note: I ran the uninstaller in Revo Uninstaller, and there were no left-over artifacts (files, registry entries).

After uninstalling AnkhSVN, you may find that some of your projects still have source control binding information in the .csproj file. I had a solution with 10 projects, and only 8 of them had this problem (all projects were controlled by AnkhSVN... not sure why not all had the issue). In that case, you will get the error:

The project 'X' is under source control. An error occurred registering this project with source control. It is recommended that you not make any changes to this project.

I was able to resolve this by editing the .csproj files in a text editor and removing the following lines:

<SccProjectName>Svn</SccProjectName>
<SccLocalPath>Svn</SccLocalPath>
<SccAuxPath>Svn</SccAuxPath>
<SccProvider>SubversionScc</SccProvider>
like image 138
Eric J. Avatar answered Oct 07 '22 12:10

Eric J.