Most questions are related to the old version ASP.NET MVC. My question is related to the latest version .NET Coreon Framework 4.6 . I created a console application and a standard class library. I installed all the libraries needed to run WEB on .NET Core.
Everything works fine, views compile fine, and debug views also work. Unfortunately, Visual Studio shows the following for any object:
In the current context, the name does not exist.
How can I get rid of these red underscores?

I use this method: Running ASP.NET Core MVC as a console application without the .NET Core SDK