The Type Or Namespace Name 'DirectoryInfo' Could Not Be Found Error Code CS0246 Posted on by Webmaster IT Support Forum › Forums › Development › C# Development › C# Coding › The Type Or Namespace Name 'DirectoryInfo' Could Not Be Found Error Code CS0246 Tagged: CS0246, System.IO This topic has 0 replies, 1 voice, and was last updated 5 years, 5 months ago by Webmaster. Viewing 0 reply threads Author Posts August 11, 2017 at 1:25 pm #2172 WebmasterKeymaster 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. Author Posts Viewing 0 reply threads You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In