Modelsbuilder - Generate Models

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.)

1 Like