Thomas Bienkowski
Thomas Bienkowski

Reputation: 138

Razor reference not working for .NETCoreApp 1.1 with Resharper

I am trying to use the Razor framework within an ASP.NET Core project (.NETCoreApp 1.1), however, after retrieving the package from Nuget, the reference is not recognized by VS.

Reference error

I'm rather unfamiliar with the framework, is there something I am missing ? All Razor MVC generated pages work, although they are not recognized as so by Visual Studio. Hence the following happens: Intellisense error

Can you please help me solve this issue?

Upvotes: 2

Views: 184

Answers (2)

Thomas Bienkowski
Thomas Bienkowski

Reputation: 138

Thanks to the first answer from A.T., Resharper got an error triggered and it turned out that it was causing the issue. To solve this issue, Pause and then Resume resharper (in Tools->Options->Resharper) Suspend and resume resharper

Upvotes: 1

A.T.
A.T.

Reputation: 26312

you might need to add these references in your project,

Microsoft.AspNetCore.Mvc.TagHelpers
Microsoft.AspNetCore.Razor.Tools

Upvotes: 1

Related Questions