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: ,

This topic contains 0 replies, has 1 voice, and was last updated by  Webmaster 2 months, 1 week ago.

  • 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.

You must be logged in to reply to this topic.