I am normally used to Web Forms and I just started my first MVC project using Sitecore 9.
I get this error in my .cshtml files:
'HtmlHelper' does not contain a definition for 'Sitecore' and the best extension method overload 'HtmlHelperExtensions.Sitecore(HtmlHelper)' requires a receiver of type 'HtmlHelper'
I already included Sitecore's default "View" web.config file in the View folder.
If i hover over "@Html", i can see that it refers to System.Web.WebPages, instead of System.Web.Mvc.WebViewPage.
If i add "@inherits System.Web.Mvc.WebViewPage" to the top of my .cshtml file, it works. But i would like to avoid this.
I tried all the normal suggestions, like cleaning project, rebuilding, deleting VS cache, deleting .csproj.user and reloading project etc.