Cannot resolve symbol "ViewData" in AspNetCore project


Rider can't recognize "ViewData" variable in Razor views bun project successfully builds. How to solve this issue?


9 comments
Comment actions Permalink

Hello, could you please check if this reproduced on the latest 2017.3 EAP build? We have fixed a bunch of similar issues recently.

1
Comment actions Permalink

Thanks Julia, this bug not appears on latest Rider version.

0
Comment actions Permalink

Good! Thanks for letting me know.

0
Comment actions Permalink

Am on the latest version of Resharper but it still gives me the error.

0
Comment actions Permalink

I am also having this same issue on 2017.3

I am making use of Razor Pages. It is also confused about the existence of @Model

Running on Mac

0
Comment actions Permalink

I am experiencing the same thing on 2017.3 #RD-173.3994.1125.

In addition to ViewData, it also thinks it cannot resolve "@model" and  "@inject

2
Comment actions Permalink

I too have the same issue.

2
Comment actions Permalink

Same thing here. It's been an issue for quite some time and it's getting tiresome.

I'm on VS 15.5.4 and it has been a problem for at least the last 4 releases of VS.

0
Comment actions Permalink

Same problem, using RD-173.3994.1125 (Ubuntu 17.10).

Renaming the file to something else and then back fixes it, but it is usually a large number of files.

0

Please sign in to leave a comment.