The type or namespace name ‘HomePage’ does not exist in the namespace ‘Umbraco.Cms.Web.Common.PublishedModels’ (are you missing an assembly reference?)
public class Views_HomePage : Umbraco.Cms.Web.Common.Views.UmbracoViewPage<ContentModels.HomePage>
I changed nothing in my HomePage and used al the same names of the tutorial.
I also don 't see a button met “generate models” when I’m in Umbraco. I have version 13.9
What tutorial are you using - can you provide the link?
Been a while since I’ve setup from scratch - have you stopped the solution and rebuilt it after making these document type changes to the homepage?
This models builder does exactly what it says - it generates a c# model to represent your document type (homepage). As this is c# code it needs to be compiled - so stopping and rebuilding and starting will do this for you.
It’s a little confusing because if you’ve been changing Views you’ll see you don’t need to recompile these (these have runtime compilation). Quick, general rule, if it ends .cshtml (as views / partials do) then no rebuild, .cs then yes.
SourceCodeManual - Models will be generated as .cs files whenever a user clicks the “Generate models” button on the models builder dashboard - however, the models will not be compiled and loaded into memory dynamically. This means that models are available to edit within the project. The project needs to be recompiled and restarted for the new models, or model changes, to take effect.~ Models builder settings | Umbraco CMS
So this is a two step process as you’ve set SourceCodeManual use the back office dashboard to generate the .cs files after you’ve edited doctypes etc (on a running site).. and then you have to rebuild the solution, recycling the app to compile the new cs changes into your dll.
Here’s the dashboard it’s talking about (in umb 16 here, but previous versions it’s in the settings tab menu too.)