This has tripped me up a dozen times, and I keep having to relearn it. To make a new project from an existing codebase (the most common scenario), follow these steps:
- Add new project
- Under “PHP Projects”, click “new project in existing folder” and name it
- Browse to location where your PHP files are
- Under “ignore directories”, uncheck “.svn” if it’s there. Leave everything else checked. This is the opposite of what you’d expect, and it seems like a bug to me.
- Chances are, the VS solution file was created as My Documents/Visual Studio 2008/Projects/PROJECTNAME/PROJECTNAME.sln. You probably want to move that to a location along with your PHP files if they’re located somewhere else.
This may well be fixed in the current version of VS.PHP, these directions are for version 2.4.