Visual Studio不显示解决方案中的所有项目 [英] Visual Studio not showing all Projects in solution

查看:788
本文介绍了Visual Studio不显示解决方案中的所有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定为什么,但是Visual Studio没有显示解决方案中的所有项目.我需要显示它们,以便可以在解决方案资源管理器下将其设置为默认项目.在一般的互联网搜索中,我没有看到针对此问题的修复程序.我看到的最接近的是 VS未显示文件夹 ,但这与我的问题不同.希望有一种简单的方法可以修复它,而不必再逐个添加内容.我的同事可以在解决方案资源管理器中看到他们完整的项目集,因此它一定是我的工作空间中的损坏.

I'm not sure why, but Visual Studio is not showing all the projects in my solution. I need them to show so I can set as default project under solution explorer. I'm not seeing a fix for this issue in a general internet search. The closest I see is VS not showing files folders, but this is different than my issue. Hopefully there is an easy way to fix it, without adding things again piecemeal. My co-workers can see their complete set of projects in solution explorer so it must be a corruption in my workspace.

推荐答案

我必须复制工作区中已更改的文件,在目录中修复我的权限/所有权(不是我,不是所有者),然后重新执行映射驱动器,打开工作区,重新执行Visual Studio项目的快捷方式(即使从理论上讲它应该与我映射的位置相同),重新拉下该项目,然后再次复制我的更改.此时,Visual Studio再次缺少解决方案,因此我可以设置启动项目并运行调试器.我不确定所有权/权限如何弄乱.我认为在其他办公室的某个位置有一台服务器出现故障,然后我的权限/所有权混在一起了.我不确定为什么VS没有显示丢失的项目,但是在完成上述操作后就解决了.

I had to copy out changed files in my workspace, fix my permissions/ownership on my directory (it was no owner instead of me), re-do the mapped drive the workspace was on, re-do the shortcut to the Visual Studio project (even though it was supposed to theoretically be the same place I mapped), re-pull the project down, and copy my changes in again. At this point Visual Studio had the missing solutions in it again so I could set startup project and run the debugger. I'm not sure how the ownership/permissions got messed up. I think at one point the other office had a server go down, and maybe my permissions/ownership got mixed up then. I'm not sure why VS wasn't showing the missing projects, but it's fixed after doing the above.

这篇关于Visual Studio不显示解决方案中的所有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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