Umbraco v9 - Unable to publish due to missing namespace in Umbraco.Cms.Web.Common.PublishedModels

Hi,

Just trying to publish our first site in v9. Getting the following error

The type or namespace name ‘AboutDT’ does not exist in the namespace
‘Umbraco.Cms.Web.Common.PublishedModels’ (are you missing an assembly
reference?)

Have the templates set up as

@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<ContentModels.AboutDT>

Works locally using InMemoryAuto but fails on publish. I have tried the different ModelsBuilder ModelsMode in the appsettings.json but both SourceCodeManual and SourceCodeAuto now fail to build locally with the same “namespace does not exist” error so not generating any models in “umbraco/models” folder

What am I doing wrong? Thanks.


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/107278-umbraco-v9-unable-to-publish-due-to-missing-namespace-in-umbracocmswebcommonpublishedmodels