Cannot resolve symbols ViewData and addTagHelper in AspNetCore project

Completed

OS:  Linux Mint 18.3

dotnet --info output:

.NET Command Line Tools (2.1.2)

Product Information:
Version: 2.1.2
Commit SHA-1 hash: 5695315371

Runtime Environment:
OS Name: linuxmint
OS Version: 18.3
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/2.1.2/

Microsoft .NET Core Shared Framework Host

Version : 2.0.3
Build : a9190d4a75f4a982ae4b4fa8d1a24526566c69df

2 comments
Comment actions Permalink

I just downloaded and installed brand new Rider 2017.3 onto Windows 10 and started a new ASP.Net Core MVC project.

The template project it created shows the same error: ViewData, addTagHelper: cannot resolve symbol.

I googled the error and it seems to be a common problem, but no resolution !

Is it worthwhile to continue with Rider ?

 

0
Comment actions Permalink

I closed the project in order to do other things. Hours later I reopened the project and the symbols were recognized.That may work for you, another work-a-round is to turn off Resharper. When you first create the project you get all of warnings about ViewData and TagHelpers but the project will compile and run without problems.

0

Please sign in to leave a comment.