Search code examples
c#wpfvisual-studio-2015resharpervisual-studio-2017

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?


Solution

  • I ended up by creating MainViewModel.partial.cs partial class and move codes to it. It works fine.

    This is not a solution, so any reply could be welcomed.