Umbraco 12 Modelsbuilder question
# help-with-umbraco
h
I'm having a weird Models builder issue, I have the following in my appsettings
Copy code
json
  "Umbraco": {
    "CMS": {

    "ModelsBuilder": {
      "ModelsMode": "SourceCodeAuto",
      "ModelsNamespace": "Umbraco.Cms.Web.Common.PublishedModels",
      "FlagOutOfDateModels": true,
      "ModelsDirectory": "~/models",
      "AcceptUnsafeModelsDirectory": false,
      "DebugLevel": 0
    }
  },
However in the backoffice it says Models Builder Version: 12.1.0+d9c3ebd ModelsBuilder is enabled, with the following configuration: The models mode is 'InMemoryAuto'. Strongly typed models are re-generated on startup and anytime schema changes (i.e. Content Type) are made. No recompilation necessary but the generated models are not available to code outside of Razor. Models namespace is Umbraco.Cms.Web.Common.PublishedModels. Tracking of out-of-date models is not enabled. Any thoughts?
d
Have you checked appsettings.Development.json?
It might be overridden
h
Yes, it is identical in both
Me being an idiot, it was in the wrong section of json 😄
d
Happens to the best of us