I got ModelsBuilder generating models using "ModelMode": "LiveAppData" in appsettings.development.json and commenting out <Compile Remove="umbraco\models\**" from the .csproj file. This was a few weeks back on a Umbraco 9 hackathon, some of you may have been on it I was trying to replicate this but cant get it to build models.
I have noticed the .csproj files dosn't have the <Compile Remove="umbraco\models\**" line anymore.
Also, the "LiveAppData" no longer is used and i have changed this to "SourceCodeAuto". Anyone got Modelsbuilder building models in a custom path recently?
Umbraco 9 Modelbuilder
Hi Umbraco Team
I got ModelsBuilder generating models using
"ModelMode": "LiveAppData"
in appsettings.development.json and commenting out<Compile Remove="umbraco\models\**"
from the .csproj file. This was a few weeks back on a Umbraco 9 hackathon, some of you may have been on it I was trying to replicate this but cant get it to build models. I have noticed the .csproj files dosn't have the<Compile Remove="umbraco\models\**"
line anymore. Also, the"LiveAppData"
no longer is used and i have changed this to"SourceCodeAuto".
Anyone got Modelsbuilder building models in a custom path recently?Dibs
I have gotten it working. If you want to take a look at my appSettings file, you can see it at https://github.com/ProworksDevTeam/CG2021-HeadlessUnicore-Backend/blob/master/appsettings.Development.json#L35
Hi Benjamin
Thanks for reply
this is what fixed my issue
Hi Guys,
For anyone interested I added a couple of blog articles about the models builder for Umbraco 9.
https://www.umbrajobs.com/blog/posts/2021/june/getting-up-and-running-with-umbraco-9-models-builder/
https://www.umbrajobs.com/blog/posts/2021/june/how-to-extend-modelsbuilder-models-in-umbraco-9/
hopefully this makes it to the umbraco docs soon :)
is working on a reply...