无法在c#.net中使用文件读写

时间:2019-02-04 00:10:56

标签: c# asp.net-core

由于某种原因,我无法在c#.net中使用文件读写,错误显示如下

enter image description here

在“参考”下确实有System.IO.Compression.FileSystem的地方

enter image description here

有人知道为什么以及如何解决此问题吗?

1 个答案:

答案 0 :(得分:5)

File是指Controller.File方法。

足以完全限定类型:

var sw = System.IO.File.CreateText(filePath);
相关问题