AnkhSVN connects Visual Studio solutions/projects with Subversion working-copy state. It is useful to distinguish three related things:
A problem with one layer does not always mean the other two are damaged.
Typical workflow:
Add is not Commit. Scheduling a file for addition only changes the working copy. Repository history begins when the addition is committed.
Before the first commit, identify generated or machine-specific content such as:
Use appropriate ignore rules rather than committing them accidentally.
Subversion tracks versioned moves/renames through working-copy and repository history.
After moving a solution or project, AnkhSVN may need to rediscover the correct working-copy root or source-control association. Avoid “repairing” a move by deleting and re-adding files if retaining history matters.
Change Source Control can repair or change the Visual Studio/AnkhSVN association when:
It should not be used to disguise a broken working copy. If command-line Subversion also reports the working copy as invalid, repair the working copy itself first.
You do not normally need to re-add files just because you opened an existing valid Subversion working copy in Visual Studio.
If AnkhSVN is not recognizing it:
If your repository uses trunk, branches, and tags, choose the intended destination before the initial add. Moving the project later is possible, but planning the layout avoids unnecessary history operations.