.NET Core - Project compiles and run, reSharper shows lots of errors on “FileStream” and “MemoryStream” objects

这一生的挚爱 提交于 2020-01-03 02:19:30

问题


I have a .NET Core project which compiles and runs without errors.

However, ReSharper (version 2017.1.2) throws up a number of errors throughout the project, mostly related to stream objects.

For example:

Cannot convert source type 'System.IO.MemoryStream' to target type 'System.IO.Stream'

and when reading a stream

Module 'System.Private.CoreLib, Version=4.0.0.0 {snip}' should be referenced

I think it's related to the latter error, however as everything runs it's just frustrating that I can't track it down.

Or should I just get ReSharper to ignore these errors?


回答1:


It's a known issue in ReSharper 2017.1.3 https://youtrack.jetbrains.com/issue/RSRP-464676.



来源:https://stackoverflow.com/questions/44300609/net-core-project-compiles-and-run-resharper-shows-lots-of-errors-on-filestr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!