Join Discord
Powered by
VS Code error
# help-with-umbraco
d
dibssingh
01/10/2024, 5:09 PM
Hi All i am trying to develop on VS code with Umbraco 13, after following the install instructions from the
https://docs.umbraco.com/umbraco-cms/fundamentals/setup/install/install-umbraco-with-vs-code
i was able to get the a site up and running. When i created a home doctype with template in back office, all worked as expected and i was able to browse the content created from the doctype and template. When i view the template in VS code, i always get CS0234 (namespace, missing assembly) error, see attached. Have i missed something frown the install process or am i missing an extension from VS code ? Has anyone else had similar issues ? Dibs
https://cdn.discordapp.com/attachments/1194689437750276197/1194689437985161398/error.png?ex=65b1443e&is=659ecf3e&hm=117eacaaabf637087b70049231d2eaec53490a0a362321023782641e556bbfbd&
a
Ambert
01/10/2024, 5:54 PM
What is your modelsbuilder setting?
https://docs.umbraco.com/umbraco-cms/reference/templating/modelsbuilder/configuration
Your system currently cant find the ContentModels.Home, so I reckon it has not been generated yet, depending on the setting it is auto-generated or you manually need to press the button in the backoffice
d
dibssingh
01/11/2024, 10:08 AM
Cheers
@Ambert
i changed Modelbuilder to SourceCodeAuto, and after rebuild and restarting app models created and VS c# working as expected
a
Ambert
01/11/2024, 10:24 AM
Hurray!
Previous
Next