Resharper intellisense does not work with the generated file

I used the function provided in the RIA Services Toolkit to automatically create a service client for the WCF service when creating a project. The generated file is placed in ... \ GeneratedWcfClientCode \ ServiceReference.cs

The project compiles and runs successfully, but Resharper intellisense does not collect this file, and as a result they say that there are errors for the elements defined in this file.

Is there a way to get Resharper to recognize the generated file?

+4
source share
2 answers

It looks like the client-side files created by RIA are not included as part of the project.

I just included the files from the "Generated Code" in the solution, and Reflector is happy again. Not perfect, but should give you back your intellisense, while the stars at JetBrains address this.

0
source

I have only ReSharper 5.1.
This version has settings for the generated code, see ReSharper-> Options-> Code Inspection-> Generated Code.

enter image description here

There you can add all the files and folders that should not concern ReSharper. Perhaps your file / folder is on this list, and therefore your file / folder is ignored using the ReSharper intellisence function.

0
source

Source: https://habr.com/ru/post/1344016/


All Articles