• I've found that sometimes as well as declaring Imports system.IO (or whichever I need), I have to actually add a reference to it. Open up the script in the editor then use Project, Add Reference and find the appropriate one in the lists and add it.