title: Visual Studio 2010 Find in Files - not finding files!
body: <p>Please save me from going totally mad here. With my project, I keep finding that "Find in Files" works fine when I search on the views directory in my ASP.NET MVC project, but not when I go one level up to the project directory:</p>
  
  <pre><code>----
  Find all "&lt;RelatedSections", Subfolders, Keep modified files open, Find Results 2, "C:\Users\James\Documents\Visual Studio Projects\DeveloperFusion\DeveloperFusion.Web.UI", "*.spark"
    No files were found to look in.
  ----
  </code></pre>
  
  <p>and yet when doing:</p>
  
  <pre><code>----
  Find all "&lt;RelatedSections", Subfolders, Keep modified files open, Find Results 2, "C:\Users\James\Documents\Visual Studio Projects\DeveloperFusion\DeveloperFusion.Web.UI\Views", "*.spark"
    C:\Users\James\Documents\Visual Studio Projects\DeveloperFusion\DeveloperFusion.Web.UI\Views\Community\Index.spark(108):  &lt;RelatedSections /&gt;
    C:\Users\James\Documents\Visual Studio Projects\DeveloperFusion\DeveloperFusion.Web.UI\Views\Content\Article\Index.spark(13):  &lt;RelatedSections /&gt;
    C:\Users\James\Documents\Visual Studio Projects\DeveloperFusion\DeveloperFusion.Web.UI\Views\Content\Code\Index.spark(14):  &lt;RelatedSections /&gt;
    &lt;snip&gt;
    Matching lines: 9    Matching files: 9    Total files searched: 239
  ----
  </code></pre>
  
  <p>As you can see, look in file types is set to *.spark (the same in both queries). Subfolder searching is enabled. The View folder isn't set to hidden or anything like that, and is included in the project.</p>
  
  <p>I'm at a loss  - any suggestions?</p>
  
  <p><strong>Update</strong> I've now realised that this behaviour varies depending on the folder name. It seems to be anything appearing alphabetically after the "obj" folder just does not get discovered. If I delete everything (or rename) the obj folder to "xyz", then the Views folder get's searched fine. Weirdness. Could it have something to do with the long path names generated by the MS Deploy tool in the obj folder?</p>