VS 2008解决方案资源管理器不显示解决方案
我尝试过几种不同的方法,但似乎总是失败。
创建一个新的空白解决方案 (my.solution.name)。然后将新的 ClassLibrary 项目 (my.project.name) 添加到解决方案中。这会导致解决方案资源管理器仅显示 my.project.name。
创建一个新的 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.
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.
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Visual Studio 2008 选项中有一个设置可以控制这一点:
如果启用此选项,则解决方案将始终在解决方案资源管理器中可见,即使解决方案中只有 1 个项目解决方案。
There is a setting in the Visual Studio 2008 options that controls this:
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.
如果您添加了另一个项目,解决方案将会出现,因此,如果解决方案中只有一个项目,您将看不到该解决方案,但如果多个项目附加到同一解决方案,您将开始看到该解决方案。
您可以正常从文件菜单添加新项目,然后选择添加到解决方案。
我认为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
您需要做的就是
重置 Windows 菜单中的窗口布局。
All you need to do is to
Reset The windows layout in Windows Menu.