title: 'System.IO.Directory' does not contain a definition for 'EnumerateDirectories'
body: <p>I have this code for looping through folders in a location, but I am getting some error I can't understand, here's the code</p>
  
  <pre><code>var directoryNames = Directory.EnumerateDirectories(filePath).Where(dir =&gt; dir.EndsWith(".user"));
  
  foreach (var directoryName in directoryNames)
  {
      // some stuff
  }
  </code></pre>
  
  <p>I get this error</p>
  
  <blockquote>
    <p>'System.IO.Directory' does not contain a definition for 'EnumerateDirectories'</p>
  </blockquote>
  
  <p>If this is something to do with the Framework version (my project has Framework 2.0, lowest possible so it can install easier on all machines), can you please:</p>
  
  <ul>
  <li>Tell me an alternative code that would work like this, and will work on Framework 2.0</li>
  </ul>
  
  <p>or</p>
  
  <ul>
  <li>Tell me if I can use higher version of Framework, and guarantee that it will be supported on most machines (meaning the user will not be required to download Framework)</li>
  </ul>