VS 2008解决方案资源管理器不显示解决方案

发布于 2024-08-27 22:25:29 字数 350 浏览 6 评论 0原文

我尝试过几种不同的方法,但似乎总是失败。

  1. 创建一个新的空白解决方案 (my.solution.name)。然后将新的 ClassLibrary 项目 (my.project.name) 添加到解决方案中。这会导致解决方案资源管理器仅显示 my.project.name。

  2. 创建一个新的 ClassLibrary (my.project.name),其中应包含 my.project.name 解决方案和 my.project.name 项目。我只看到 my.project.name 项目。

如果没有解决方案级别,我无法将任何新项目添加到我的解决方案中。这似乎是今天才刚刚开始。

I have tried this a few different ways and it always seems to fail.

  1. Create a new Blank Solution (my.solution.name). Then add a new ClassLibrary project (my.project.name) to the solution. This results in the solution explorer only showing my.project.name.

  2. Create a new ClassLibrary (my.project.name) which should have my.project.name solution and my.project.name project. I only see my.project.name project.

Without the solution level I'm unable to add any new projects to my solution. This seems to have just started today.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一江春梦 2024-09-03 22:25:29

Visual Studio 2008 选项中有一个设置可以控制这一点:

  • 打开选项对话框工具 > 选项...
  • 选择项目和解决方案 >导航窗格中的常规
  • 选中始终显示解决方案

如果启用此选项,则解决方案将始终在解决方案资源管理器中可见,即使解决方案中只有 1 个项目解决方案。

There is a setting in the Visual Studio 2008 options that controls this:

  • Open the options dialog Tools > Options...
  • Select Projects and Solutions > General in the navigation pane
  • Check Always show solution

If this option is enabled, then the solution will always be visible in the Solution Explorer, even if there is only 1 project in the solution.

﹂绝世的画 2024-09-03 22:25:29

如果您添加了另一个项目,解决方案将会出现,因此,如果解决方案中只有一个项目,您将看不到该解决方案,但如果多个项目附加到同一解决方案,您将开始看到该解决方案。

您可以正常从文件菜单添加新项目,然后选择添加到解决方案。

我认为SP1解决了这个问题。

更新:

虽然我的回答解释了为什么会发生这种情况,但我相信正确的解决方案是 https://stackoverflow .com/a/4946248/20126 来自 @bcpettifer

If you added another project the solution will appear, so if its just one project in the solution you will not see the solution, but if more than one project attached to the same solution you will start seeing the solution.

You can add new project normally from file menu then select add to solution.

And i think this problem solved by SP1.

Update:

While my answer explain why this is happening but I beleive that the correct solution is https://stackoverflow.com/a/4946248/20126 from @bcpettifer

破晓 2024-09-03 22:25:29

您需要做的就是
重置 Windows 菜单中的窗口布局。

All you need to do is to
Reset The windows layout in Windows Menu.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文