The Type Or Namespace Name 'DirectoryInfo' Could Not Be Found Error Code CS0246

IT Support Forum Forums Development C# Development C# Coding The Type Or Namespace Name 'DirectoryInfo' Could Not Be Found Error Code CS0246

Tagged: ,

Viewing 0 reply threads
  • Author
    Posts
    • #2172
      Webmaster
      Keymaster

      visual studio gives this error:

      The type or namespace name ‘DirectoryInfo’ could not be found (are you missing a using directive or an assembly reference?)

      This is because you need to put using System.IO at the top of your code.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.