I'm currently building an ASP.NET 5 (ASP.NET Core 1.0) MVC application. I'm using Visual Studio 2015 with ReSharper Ultimate 10.0.2.
I currently have a 2-tier layer solution which consists of a Www
(web application) and a Services
layer. The Www
has a reference to the Services
layer.
When ReSharper is suspended, the classes within the Www
layer are able to invoke objects from the Services
layer, as shown here:
However, when ReSharper is enabled, I get the following message: Cannot resolve symbol 'Services'
, as shown here:
What I've tried:
- Clearing the caches from
Tools -> Options -> ReSharper Ultimate -> Options -> Clear Caches
- Remove the
JetBrains
folder from%APPDATA%
- Restarting Visual Studio 2015
- Reinstalling ReSharper
- Suspending and resuming ReSharper
- Adding and removing references
- Rebuilding the solution
Any help is appreciated.
In Visual Studio 2017 I solved in this way:
- Close the solution
- Delete the ".vs" hidden folder
- Reopen the solution and rebuild it
Looks like Jetbrains is aware of this: youtrack.jetbrains.com/issue/RSRP-408661
However, it gave me an idea. I set CopyLocal on the assembly to "true" and now my references resolve.
I had the same issue with v2017.1. Spent some time trying different solutions like clearing cache, suspending and resuming, but no success.
What helped me: I updated to v2017.3.1 (latest on time of writing). So if you facing a problem which you cant fix by simple suspending or clearing cache, consider updating to latest version, probably it was a small bug, and now it is fixed.
For me I got to reinstall MSBuild. Then it worked again.
来源:https://stackoverflow.com/questions/35227523/resharper-cannot-resolve-symbol