For anyone using Visual Studio 2015, this error will still occur, even if it refers to System.IO. The problem is that, by default, the Visual Studio 2015 project will focus on both the dnx451 infrastructure and dnxcore50 infrastructure, and the System.IO assembly is apparently not available for dnxcore50.
If you look in the project.json file, you will see the "frames" section. A quick fix is ββto comment on the "dnxcore50" entry so that you only aim at dnx451:
"dnxcore50": { "dependencies": { "System.Console": "4.0.0-beta-22816", "System.Collections": "4.0.10-beta-22816", "System.Linq": "4.0.0-beta-22816", "System.Threading": "4.0.10-beta-22816", "Microsoft.CSharp": "4.0.0-beta-22816" } }
Ciaran bruen
source share