Resharper doesn't understand razor

Hi.

Resharper doesn't understand razor syntax so my views look like this:

All model properties are not resolved. But in foreach it works somehow(item has valid properties).

Version:

Tried reinstalling resharper, remove all other plugins, disable structural navigation. Nothing helped. It's a website on .NET Framework 4.5.2.

Thanks in advance.

0
6 comments

Hello Sergey!

 

Thank you for contacting us.

Could you please try clearing caches as described in the following help article -https://resharper-support.jetbrains.com/hc/en-us/articles/206546989-ReSharper-stopped-working-for-a-single-specific-solution.

Thank you.

0
Avatar
Permanently deleted user

Hi Angelina.

 

Thanks for your reply. Cache cleaning didn't help. Even reinstalling resharper doesn't fix it. At least three more developers have the same issue in out company.

 

Thank you,

Sergey.

0

Hello Sergey!

 

Sorry for delay in responding.

Could you please share solution that demonstrates the issue? You can do it privately via 'Submit a request' form. We can sign NDA if needed as well.

Thank you.

0
Avatar
Permanently deleted user

Hello Angelina.

 

It happens when you open a "Website" in visual studio and not a "Web Application Project". Do you have such an example? If not I'll create a test solution for you.

 

Thank you.

Sergey.

0

Hello Sergey!

 

Sorry for delay in responding.

Unfortunately cannot reproduce problem in newly created Website project, possibly missing something. Could you please provide demo project?

Thanks in advance.

0

Hello Sergey!

 

Please have a look at this issue - https://youtrack.jetbrains.com/issue/RSRP-471325. Does it looks the same as your problem?

Thank you.

0

Please sign in to leave a comment.