PositiveGuy
PositiveGuy

Reputation: 47763

AnkhSVN not Recognizing my Solution as being in Source Control

I did not go the route of using the ankhSVN context menu in VS to add my solution to SVN. I went the route (because I prefer to and like how tortoise does this) of using Tortoise to add my folder/project to SVN for the first time.

Then when I opened that solution, VS opens but ankhSVN still did not flag my files or recognize a connection to svn.

what's the deal? I don't want to be forced to only use ankhSVN to commit a project for the first time to SVN in order for ankhSVN to bind or recognize and kick in.

Upvotes: 6

Views: 4040

Answers (3)

Sander Rijken
Sander Rijken

Reputation: 21615

Most likely, AnkhSVN isn't loaded yet at this point. Go to Tools - Options - Source Control, and select AnkhSVN as the active SCC Provider. Then go to File - Subversion - Change Source Control, and connect/bind the solution. This causes Ankh to be loaded the next time you open the solution by annotating the sln file. Other people checking out the same sln file also benefit from this, because Ankh is then loaded directly.

Upvotes: 22

Neil N
Neil N

Reputation: 25278

I had the same problem, usually this fixes it:

Right click on the solution node of the Solution Explorer. In the context menu, go to Subversion... Refresh Status.

Or as Stefan points out, just use the Ankh toolbar in Visual Studio.

Upvotes: 0

David Basarab
David Basarab

Reputation: 73351

The times I had this issue it was because SVN was updated and ankhSVN didn't support the type. I fixed this by either rolling back the SVN update or install the lastest version of ankhSVN which sometimes is the beta version.

Upvotes: 2

Related Questions