开发者

Resharper intellisense isn't working with generated file

开发者 https://www.devze.com 2023-02-18 10:24 出处:网络
I used the feature provided in the RIA Services Toolkit to automatically generated a service client to a WCF service when you build the project.The generated file is placed in开发者_如何学编程 ...\\Ge

I used the feature provided in the RIA Services Toolkit to automatically generated a service client to a WCF service when you build the project. The generated file is placed in开发者_如何学编程 ...\GeneratedWcfClientCode\ServiceReference.cs

The project compiles and runs successfully, however Resharper's intellisense isn't picking up that file and as a result is saying there are errors for the items defined in this file.

Is there anyway to force Resharper to recognize the generated file?


It appears it's because the client-side files generated by RIA aren't included as part of the Project.

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


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

Resharper intellisense isn't working with generated file

There you can add all files and folders that must not be touched by ReSharper. Maybe your file/folder is in that list and so your file/folder is ignored by ReSharper's intellisence.

0

精彩评论

暂无评论...
验证码 换一张
取 消