Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does resharper recognise what files to include for its intellisense?

It is a well known issue with Resharper that it fails to recognize generated C# files using Custom Tasks (making intellisense fail). Does anyone know how to fix this without adding the files to the project?

(BTW, including the generated files in the project or creating a separate assembly and other such flawed suggestions are totally out of the question).

  • Can we write a Resharper plugin for this? We have a fairly large number of developers that cannot use Resharper, so this would well be worth the effort.
  • Can we somehow add the obj/*.g.cs files to Resharpers non msbuild based csproj parser (lurking somewhere within Resharper)?
  • Is the method used by Resharper on how to resolve the list of .cs files to include documented somewhere?

As this issue is experienced and reported again and again for years, surely there must be someone who has cracked it by now?

like image 956
Jack Wester Avatar asked Apr 03 '12 19:04

Jack Wester


1 Answers

I found an extension for Resharper: ReSharper.ExternalCode.

Tip for Antlr: add obj\Debug in Resharper -> Code Inspection -> External Code and reload solution.

It's works for me.

like image 148
Dem0n13 Avatar answered Oct 13 '22 17:10

Dem0n13