Umbraco 13.3.2
We have Web and Core (Class project) project in our application.
I wanted to access PublishedModels in the core project where nuget packages Umbraco.CMS.Core, Umbraco.Cms.InfraStructure, Umbraco.Cms.Web.Common, Umbraco.Cms.Web.Website are installed.
Umbraco.Cms.Web.Common.PublishedModels is not accessible from the controller added to the Core project.
How to access PublishedModels from the core project.
r
Rachel D
06/13/2024, 1:24 PM
If you check the settings for the models builder, you can set an alternative directory for the model code to be saved to: https://docs.umbraco.com/umbraco-cms/v/13.latest-lts/reference/configuration/modelsbuildersettings
This allows you to put the generated models in the core project, or any other project that's useful such as their own Models project, so you can reference them more easily.