Visual Studio Solution Explorer not showing files and folders

こ雲淡風輕ζ 提交于 2019-11-28 02:51:11

问题


Suddenly my solution tab stopped working on my Visual Studio 2013. Even it is existing project or brand new project it does not show files and folders in Solution Explorer. (File is attached)

I tried to reset settings, restarted PC but did not work. http://msdn.microsoft.com/en-us/library/ms247075(v=vs.100).aspx

I did not installed any new extensions recently I was working what ever I had for a while.

Is there anything else I can do?

Update;

I am also getting this weird message when I click options Icon:


回答1:


Check this out: http://www.hjerpbakk.com/blog/2014/7/25/no-content-in-solution-explorer-using-visual-studio-2013

To quote... "This issue is because of a MEF cache corruption. Installing the feedback extension (or installing any extension) will invalidate the cache causing VS to rebuild it."

Link to bug report: https://connect.microsoft.com/VisualStudio/feedback/details/794111/no-exports-were-found-that-match-the-constraint-contract-name




回答2:


Just to get the answer here on the same page as the question: users should install (or uninstall) an extension to Visual Studio as this will force a rebuild of the MEF cache. The linked article suggested installing the Microsoft Visual Studio 2013 Feedback Tool extension, which I did do and it worked, but any extension installed through the Tools, Extensions and Updates menu would probably do the job.

I think the cause of this might have been related to an overzealous anti-virus program, but I can't say for sure.




回答3:


  1. Copy and paste the folders and files at the project location for integrating the project module and build the project even though namespace has correct. This are the way to resolve

  2. The file/folder is not visible proper so Right-click

    improper visible file/folder and click the Include in Project
  3. Build the project -> If any error occur then it like namespace may be error because copy from one project to another project or else same project with different location so that check it

  4. If the error like Build action 'Page' is not supported by the specific combination of the project's targets.

  5. Go and resolve by further steps




回答4:


As this issue is because of a MEF cache corruption. Just delete your .vs folder and re-open your solution.




回答5:


Even, it will work if you clear your local app data for visual studio. %temp% AppData\Roaming\Microsoft\VisualStudio. %temp% AppData\Local\Microsoft\VisualStudio. Delete the files and restart your visual studio.




回答6:


Open the Solution Explorer and click on Show All Files Button, it will show the files which were there in your project and you were unable to see them. Then if you want to include them in your project, select the folder and right-click on it and select Include in the project.



来源:https://stackoverflow.com/questions/26912433/visual-studio-solution-explorer-not-showing-files-and-folders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!