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?
I have to say that removing the section
<ProjectTypeGuids>...</ProjectTypeGuids>
could create some problems. In fact, such a section defines the type of the project and, if removed, could disable some features. For example, if your project was originally defined as Smart Device (C#), after removing the aforementioned section the on-device debug may not working properly.I had the same problem when i migrated a website to a web app project.
In my case it was corrupted vbproj file. First line was missing:
After adding this line I had to close the solution, delete
.vs
folder and open again.If anyone uses AnkhSVN instead of TFS, it's also possible, that the .sln-file need the following lines:
in the "Global" section.
I had the same message... Seems like it comes from (.csproj) project file. Under first propertygroup there is a section named
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.
I had this problem and I was able to solve it using the following steps: