Intellisense support for Starter Kit objects
# help-with-umbraco
u
Hi folks, I'm just getting started with Umbraco, and I've been experimenting with a new installation. To save time and gain understanding of the customization features I've tried using a few starter themes, but when I view the source for the templates in VS2022 or Rider I have dozens of unresolved external objects, as these all seem to have been generated through Umbraco.ModelsBuilder.Embedded. The classes themselves are in all.generated.cs (which is in Engage/umbraco/Data/TEMP/InMemoryAuto/all.generated.cs), which is obviously not included in the source. How is this supposed to be handled when developing and debugging? Is this a new issue using v12 that didn't occur in earlier versions?
j
For you to get intellisense on models you need your modelsbuilder to be in sourceCode mode: https://docs.umbraco.com/umbraco-cms/reference/templating/modelsbuilder/builder-modes
u
Thanks, yes, that is what I needed to find. It's surprising that such a fundamental aspect of debugging and creating your own content in VS/Code/Rider is so hard to find. I only found eventually it by searching for the fact that intellisense doesn't resolve, and trawling through responses until I saw one mentioning builder-modes. Your reference to the appropriate doco helps greatly, so thanks!
2 Views