I ran into this problem today while migrating a VS2008 solution to VS2010. The problem occurred in either of the following scenarios:
In my case it was a problem with TortoiseGit. Removing Debug and Release folders from the GIT repository solved the problem.