Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 Enterprise with ReSharper 10 Ultimate -- Cannot be properly resolved

Tags:

I have Visual Studio 2015 Enterprise, version 14.0.24720.00 Update 1 as well as ReSharper 10 Ultimate, version 10.0.2 installed. I have a typescript file that is using AtScript syntax to refer to the Angular2 directive module, as its annotation. However, ReSharper is stating the following error:

Symbol 'Directive' cannot be properly resolved, probably it is located in inaccessible module.

Below is the full error tooltip.

enter image description here

The application compiles and runs as expected, and the angular portions of the application also function as desired. It appears as though this is a ReSharper false negative. Is anyone familiar with a workaround other that simply disabling ReSharper or ignoring the warning?

like image 349
David Pine Avatar asked Jan 04 '16 13:01

David Pine


People also ask

Why is ReSharper not working?

Possible reason: Check if there is "ReSharper" tab in the "Tools | Options" dialog, and ReSharper is not suspended. If there's no such dialog or it shows an error, continue to the next Part II of this guide (below). If ReSharper is shown as 'Suspended' in this dialog, use the "Resume" button.

How do I turn on ReSharper?

In the Visual Studio menu, choose ReSharper | Options. In the Options dialog that appears, select a node in the left pane and configure settings in the right pane.


1 Answers

The issue is simply a bug with the latest version of ReSharper, if you Suspend ReSharper the issue simply goes away and all the source code works as expected.

Update

This has since been addressed in the ReSharper 2016.1 version.

like image 102
David Pine Avatar answered Nov 10 '22 14:11

David Pine