我必须以编程方式从 wwwroot\images 中删除文件。 ASP.Net 5 rc1 中是否有某种文件管理器?
请您参考如下方法:
您可以通过将 System.IO 命名空间包含在您的平台依赖项中来使用它;
...
"frameworks": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"System.IO": "..."
}
}
},
...
