项目文件 '' 已重命名或不再在解决方案中 [英] The project file '' has been renamed or is no longer in the solution

查看:29
本文介绍了项目文件 '' 已重命名或不再在解决方案中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在 Visual Studio 2008 中尝试构建解决方案时遇到过这个错误吗?

Anyone ever had this error when trying to build a solution in Visual Studio 2008?

这让我发疯!我已经删除了所有包含项目并重新添加了它们,但它仍然不允许我构建或运行解决方案.

It's driving me MAD! I've removed all the containing projects and re-added them, and it's still not letting me build or run the solution.

有什么建议吗?

推荐答案

如果您在文本编辑器中打开解决方案文件 (SolutionName.sln),您应该为每个项目添加如下几行:

If you open the solution file (SolutionName.sln) in a text editor you should a couple of lines something like these for each project:

Project("{FAE04EC0-301F-11D3-BF4B-00C04F89EFBC}") = "ProjectName", "ProjectName\ProjectName.csproj", "{6B887D8C-D874-4AB2-B2CC-3551DEA2CC83}"
EndProject

这些行之间可能有更多的东西,或者在这种情况下,它们可能会以某种方式损坏.如果您可以隔离问题条目并将其删除,您或许可以重新找到解决方案.

There may be more stuff in between those lines, or in this case they may corrupt in some way. If you can isolate the problem entry and remove it you may be able to resurrect the solution.

这篇关于项目文件 '' 已重命名或不再在解决方案中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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