0

EDIT: Found issue to be resharper. When I disable it it stop showing errors.

When I start a new Blazor fullstack project from Visual Studio it shows error in IDE. I have looked at Visual Studio displaying errors even if projects build but doesn't seem to help.

I followed the guide on Blazor (https://blazor.net/docs/get-started.html)

But the client side project shows lots of errors

EG: enter image description here

and more details: enter image description here

and: enter image description here

enter image description here

Any one else tried this and know how to fix it?

I am running VS Studio Enterprise 2017 Version 15.8.8 I have installed ASP.NET Core Blazor Language Services.

Everything seems to work as it should. I was able to add new page with external RestAPI calls and all.

Edit: Updated VS to latests version with no luck

Seems it might be resharper: https://resharper-support.jetbrains.com/hc/en-us/community/posts/115000554550-ASP-NET-Core-Razor-Pages-page-Cannot-resolve-symbol-

Kiksen
  • 1,559
  • 1
  • 18
  • 41

1 Answers1

0

Well. Seems that jetbrains is aware of issue.
It can be found here:
https://youtrack.jetbrains.com/issue/RSRP-469186

Not much to do than disable Resharper for the moment and wait for them to fix it :)

If you need help to disable and enable it again:
How can I disable ReSharper in Visual Studio and enable it again?

Kiksen
  • 1,559
  • 1
  • 18
  • 41
  • 1
    The latest ReSharper mostly works fine with Blazor. Are you sure you're on the *preview* version VS 2017? (that's a listed requirement) – Kirk Woll Oct 29 '18 at 19:39
  • I assume you're not on the preview version of VS2017. Interesting -- apparently it's no longer required for Blazor (this would be a pretty recent change). I wonder if ReSharper is not supporting Blazor when not using the preview. – Kirk Woll Oct 31 '18 at 20:27
  • So I've tested between the latest VS2017 and the preview edition and the problem is not present when using the preview edition. So my hunch is that resharper is not ready yet for the latest version of the non-preview edition that now supports Blazor. – Kirk Woll Nov 10 '18 at 02:56