The type or namespace name 'Name' does not exist in the namespace 'Umbraco.Web.PublishedModels'

Been looking at a project in v8 locally and created a PageType for a component just to test called ‘HeroTest’. Now I can’t build the project in Visual Studio 2017. I am getting this error.

Error CS0234 The type or namespace name ‘HeroTest’ does not exist in the namespace ‘Umbraco.Web.PublishedModels’ (are you missing an assembly reference?) MassageEnvy C:\Users\Local Administrator\AppData\Local\Temp\Temporary ASP.NET Files\temp\ade71005\fab88062\App_Web_vtha5sls.0.cs 1 Active

I went back to the earlier build and deleted the PageType from Umbraco. But I am still getting this error. How do I resolve?

I was looking around for answers. and I have this in my web.config.

I went in Umbraco and settings, I have ModelsBuilder installed but no where do I see to build the Models.

Not sure how to resolve?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/102082-the-type-or-namespace-name-name-does-not-exist-in-the-namespace-umbracowebpublishedmodels