问题
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