Visual Studio Solution Explorer not showing files and folders
it worked to click "show all files" in the Solution explorer!
Rebuilding didn't work for me, and I wasn't keen on installing another extension.
Got it to work in the following three steps:
- Click "Show All Files" in solution explorer (in bar above search bar)
- Right click folder that was previously missing, select "Include In Project"
- Click (unselect) "Show All Files" in solution explorer.
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
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.