Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh button in Visual Studio Solution Explorer not working

Just got Visual Studio Express 2012 for Windows Desktop and finding myself overly annoyed that the Solution Explorer doesn't accurately reflect the state of my project. I keep clicking Refresh, but it doesn't actually do anything. Microsoft's rather, uh, verbose explanation of how to use it was no help. Oddly enough, my project does refresh sometimes, but I can't figure out what the cause is. It's definitely not the refresh button.

Here's what my Solution Explorer looks like right now:
my solution explorer
I've deleted a lot of these classes. Things like "Term" are what I typed while in the process of naming a class, but the Solution Explorer shows them as separate classes. Also some of the classes I have aren't showing up.

This whole thing is really messed up, and I'm having trouble visualizing what my project looks like because Solution Explorer doesn't show an up-to-date outline of my classes.

How do I refresh the Solution Explorer?

like image 988
Eva Avatar asked Feb 11 '13 15:02

Eva


People also ask

How do I refresh a Solution Explorer in Visual Studio?

There is a refresh icon option in the top row of solution explorer.

How do I refresh a file in Visual Studio?

There is a refresh option on the bottom of 'view' tab. click on your project in the solutions explorer(not the solution itself, but the project), then click on the view tab on the tab list on top of the visual studio. tabs go: file, edit, view, project... on the bottom of view tab refresh option will appear.


2 Answers

There's a "show all files" button in the top row of Solution Explorer. Click that and you should see your missing files/folders. Right click and choose "Include in Project".

show all files

like image 123
dmathisen Avatar answered Sep 19 '22 00:09

dmathisen


Choose the project where you deleted the file and than click on show all files enter image description here

Now you will get excluded/Removed files enter image description here

Right Click > include in project.

like image 35
Krishna shidnekoppa Avatar answered Sep 19 '22 00:09

Krishna shidnekoppa