我在Visual Studio Code C#Sharp项目中使用了dotnet核心版本 1.0.0-preview2-1-003177
.
我不知道如何使用 StreamReader
类 . Visual Studio代码IntelliSense仅提供 System.IO.Compression
& System.IO.MemoryMappedFiles
而不是 System.IO.StreamReader
.
我相信我必须将它添加到project.json中的依赖项,但我不确定是什么版本以及如何
"dependencies": {
"System.IO.StreamReader": "--here--"
},
1 回答
添加System.IO nuget包 . 最新版本是4.3.0 .
不要忘记添加正确的使用声明
using System.IO;
.