Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper Inspection/Context Actions not working to only one file

I've been using Resharper for years but today I found Resharper inspection including Context Action (Ctrl+Enter bulbs) is not working to only single file (MainViewModel.cs in .NET4.6.2 WPF project) in solution.

This No-inspection symptom can be acknowledged by no yellow/green checkmark on top of editor scrollbar.

Here's what I've checked.

  • I found encoding was not same as others so to change to UTF8 BOM as like others, but still not working.
  • Close VS, Reinstall Resharper 2016.3.2, all of them are not helped.
  • There's no ignorance filter for this file in Resharper option.
  • There's no solution-wide Resharper options.
  • There's no code inspection pattern in Resharper options.
  • This occurred in both VS2015/VS2017 identically.
  • such an inspection is working for all other cs files in same folder.

What can I do to check more for this problem?

like image 691
Youngjae Avatar asked Mar 09 '17 11:03

Youngjae


1 Answers

MainViewModel and ViewModelLocator are both omitted from ReSharper analysis.(Perhaps because they were added automatically as part of the MVVM Light NuGet package?) The fix is to right-click the "Pause" icon at the top of the vertical scrollbar and "Enable analysis" for the file. Click again and "Resume"

like image 123
Antony Corbett Avatar answered Oct 01 '22 20:10

Antony Corbett