visual-studiotfs

Why does it say "Project with that name already opened in the solution"?


I recently migrated a VSS database to TFS 2008. Using Source Control Explorer, I got the latest version of a solution with 12 projects.

When I opened the solution in VS 2005, two of the projects were not found. I am not sure why these two projects were not found, but thought it easiest to just delete and re-add them to the solution.

When I do this, VS gives me a "A project with that name is already open in the solution." The project doesn't appear in solution explorer, and is not listed in the .sln file.

Any ideas?


Solution

  • I had the same message... Seems like it comes from (.csproj) project file. Under first propertygroup there is a section named

    <ProjectTypeGuids>...</ProjectTypeGuids> 
    

    which generally tells Visual Studio to handle that project in some specific way. Some Guids can be found here.

    First make a backup copy of that file. Then removing that section can help you open the project as usual project. As it seems that the Visual Studio thinks that the project is not the type that is specified in the ProjectTypeGuids.