2

I have a Visual Studio solution and projects in a folder. I suspect there are also some .cs files in that folder that aren't in any project. How can I list them?

Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
  • Are you referring to files in the folder itself? You could right right-click the folder and select "Open Folder in File Explorer" to see everything. – Bill Mar 28 '14 at 14:39
  • possible dublicate: [SO](http://stackoverflow.com/questions/5348849/visual-studio-2010-solution-explorer) – stukselbax Mar 28 '14 at 14:40
  • 2
    also, in solution explorer, theres an icon at the top that will "Show all files" in the folder – Jonesopolis Mar 28 '14 at 14:41

1 Answers1

10

Clicking the "Show All Files" in solution explorer will show all files

The files not in the solution will have a dotted icon

enter image description here

Morten Anderson
  • 2,301
  • 15
  • 20
  • Thanks. Is there anyway I can list all such files without having to peer through the solution explorer? It's a big solution. – Colonel Panic Mar 28 '14 at 14:55
  • I don't believe a functionality like this exist in VS. You might be able to roll your own using the visual studio DTE -> have a look at this http://stackoverflow.com/questions/1434720/get-a-list-of-solution-project-files-for-vs-add-in-or-dxcore-plugin . List the active files in solution-> list files in folder -> filter to *.cs and compare – Morten Anderson Mar 28 '14 at 15:09