ReadAsync 的 Monodevelop 编译问题
Monodevelop compile issue with ReadAsync
Monodelop V5.1 & V5.9.8
Mono JIT 编译器版本 4.2.1
Monodelopel 对此表示不满:
while ((numBytesRead = await stream.ReadAsync(data, 0, 1024)) >0)
然而 intellisense 提供了它作为一个选项
Error CS1061: Type System.IO.Stream' does not contain a definition
for
ReadAsync' and no extension method ReadAsync' of type
System.IO.Stream' could be found. Are you missing an assembly
reference? (CS1061)
手动添加框架修复了它
<PropertyGroup>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
Monodelop V5.1 & V5.9.8
Mono JIT 编译器版本 4.2.1
Monodelopel 对此表示不满:
while ((numBytesRead = await stream.ReadAsync(data, 0, 1024)) >0)
然而 intellisense 提供了它作为一个选项
Error CS1061: Type
System.IO.Stream' does not contain a definition for
ReadAsync' and no extension methodReadAsync' of type
System.IO.Stream' could be found. Are you missing an assembly reference? (CS1061)
手动添加框架修复了它
<PropertyGroup>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>