ASP.NET Core Razor Pages @page "Cannot resolve symbol"

VS (2017) 15.3.1

.NET 2.0 installed

R# 2017.1.3

 

 

 

1
6 comments
Official comment

Hello Bob!

 

Thank you for contacting us.

Core 2.0 is not supported in ReSharper 2017.1.3, corresponding support will be introduced in ReSharper 2017.2 version.

You can try ReSharper 2017.2 EAP build - https://www.jetbrains.com/resharper/eap/.

Thank you.

Avatar
Permanently deleted user

I am using R# 2017.3 EAP 4 in VS 2017 Community on a project targeting .Net 4.5 and am seeing this error as well.

 

0
Avatar
Permanently deleted user

I'm still getting this with VS2017 and R# 2017.3.1

 

Project compiles and is deployed and running fine up in Azure. I have to keep uninstalling R# and reinstalling for it to resolve for a while.

0

Hello George!

 

Thank you for the feedback.

Looks similar to https://youtrack.jetbrains.com/issue/RSRP-465693. Currently we are investigating the issue, we'll be very grateful if you could provide the solution which introduces the issue and steps leading to the red code. We can sign NDA if needed.

Please note that you don't need to uninstall ReSharper in this case, try clearing caches as described in the following article.

Thank you. 

0
Avatar
Permanently deleted user

From what I can tell it seems to happen when there is a redundant namespace on the model declaration. I had just scaffolded a set of pages and VS puts the fully qualified type name and the problem showed. Removed the redundancy and the problem went away.

0

For those coming from google make sure you installed the `Microsoft.AspNetCore.Blazor.Templates` package not `Microsoft.AspNetCore.Blazor`. (check your .csproj file to see which is being referenced).

0

Please sign in to leave a comment.