Why does it say “Project with that name already op

2019-03-14 10:54发布

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?

12条回答
Juvenile、少年°
2楼-- · 2019-03-14 11:10

This did it for me:

  1. remove the section <ProjectTypeGuids>...</ProjectTypeGuids> in each project
  2. reopen each project, then save to overwrite the existing project file, finally exit
  3. reopen the solution file
  4. pray (optional)
查看更多
何必那么认真
3楼-- · 2019-03-14 11:12

Delete .suo file. Build solution. Add Projects.

查看更多
疯言疯语
4楼-- · 2019-03-14 11:14

For those looking for this while dealing with VSTO projects...

Be sure to have the Office Tools for Visual Studio installed in your machine before opening the project.

查看更多
干净又极端
5楼-- · 2019-03-14 11:17

The following worked for me when I moved a project running vs2010 to another laptop.

I removed exactly the following and it worked:

<ProjecctType>Guid of sorts</ProjectType>
<SccProjectName>Svn</SccProjectName>
<SccLocalPath>Svn</SccLocalPath>
<SccAuxPath>Svn</SccAuxPath>
<SccProvider>SubversionScc</SccProvider>
查看更多
Emotional °昔
6楼-- · 2019-03-14 11:18

I solved it by changing Windows' regional settings. Instead of "English (Europe)", I used "English (United States)". Others have reported similar behaviors with changing for example from "Russian (Ukraine)" to "Russian (Russia)", etc. -AlessandroSegala

Work For me.

Ref: http://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/customized-cultures-cannot-be-passed-by-lcid-only/26eb9d4b-7ddb-4774-8a40-7a7d84ba9277?auth=1&rtAction=1455534187354

查看更多
来,给爷笑一个
7楼-- · 2019-03-14 11:25

I would try hand editing the project/solution files, they are text and pretty easy to read. You can edit the file in notepad. To open up the file as text in visual studio you need to first close the solution. Then do file->open and select the sln file, but instead of hitting the open button, press on the right side where there is an arrow and select open with.. from there you can select source code editor (text).

查看更多
登录 后发表回答