i have Umbraco 13.4.1 up and running via vscode, i have set ModelsBuilder to SourceCodeManuel and have models running in an unsafedirectory. Models are getting generated as expected. i run dotnet build, Ctrl f5 get site back up. i edit a template which is making use of the Model. Add @Model.title to template. Error displayed saying Template does not contain definition for property. Not sure what else i have to add/configure to allow @Model. to work ?
r
Rachel D
08/27/2024, 11:19 AM
Have you tried
@Model.Title
? I believe it capitalises the first letter of properties, you can double-check the generated model to make sure. You will also need to reference the project you're placing the models into in your web project if you aren't already
d
dibssingh
08/27/2024, 11:28 AM
your a star @Rachel D capitalise worked
r
Rachel D
08/27/2024, 11:29 AM
Glad I could help!
k
kdx-perbol
08/28/2024, 6:49 AM
Is there no intellisense for VSCode? I'd be lost without it... (only ever used VS for Umbraco Razor)