问题
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:
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
The file/folder is not visible proper so Right-click
improper visible file/folder and click the Include in ProjectBuild 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
If the error like Build action 'Page' is not supported by the specific combination of the project's targets.
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