为什么说“在解决方案中已打开该名称的项目"? [英] Why does it say "Project with that name already opened in the solution"?

查看:232
本文介绍了为什么说“在解决方案中已打开该名称的项目"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将VSS数据库迁移到TFS2008.使用Source Control Explorer,我获得了包含12个项目的解决方案的最新版本.

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

当我在VS 2005中打开解决方案时,找不到两个项目.我不确定为什么找不到这两个项目,但是认为删除它们并将其重新添加到解决方案中是最简单的.

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.

当我这样做时,VS给我一个解决方案中已经打开了具有该名称的项目".该项目没有出现在解决方案资源管理器中,并且没有在.sln文件中列出.

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.

有什么想法吗?

推荐答案

我有相同的消息...好像它来自(.csproj)项目文件.在第一个属性组下有一个名为

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

<ProjectTypeGuids>...</ProjectTypeGuids> 

通常告诉Visual Studio以某种特定方式处理该项目.可以在此处找到一些指南.

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

首先制作该文件的备份副本.然后删除该部分可以帮助您像往常一样打开项目.好像Visual Studio认为该项目不是ProjectTypeGuids中指定的类型.

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.

这篇关于为什么说“在解决方案中已打开该名称的项目"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆