title: Visual Studio macro: Find files that aren't included in the project?
body: <p>I'd like to write a macro to crawl through the files in my project directory and find files that aren't included in the project. </p>
  
  <p>In playing around with the DTE object, I see that the <code>Project</code> object has <code>ProjectItems</code>; if a <code>ProjectItem</code> represents a directory, then it has its own <code>ProjectItems</code> collection. This gives me all files that are included in the project. </p>
  
  <p>So I could crawl recursively through each ProjectItems collection, and for each ProjectItem that's a directory, check to see if there are files in the file system that don't have a corresponding ProjectItem. This seems clumsy, though. </p>
  
  <p>Any ideas of a simpler way to approach this?</p>