In terms of dependencies, I'm slightly confused: I can understand wanting to separate out the Umbraco front-end from the Umbraco back-end logic but I don't understand how to set up refences in these scenarios.
In the article above, if Web.UI holds the Umbraco installation and Web holds the Umbraco back-end logic, shouldn't Web reference Web.UI? How do I access the Umbraco assemblies from the Web project unless I basically do two full Umbraco installations in both projects?
Thanks, Huw. I understand that, but as an example: If I'm writing custom controller logic in the Web project, how do I reference Umbraco if it's not added as a reference within the project?
Wouldn't I need to reference the Umbraco assemblies within this project too, since Web.UI references Web and not the other way around?
Sorry if this sounds like a daft question, but it's not making sense to me.
you would use one of the other umbraco assembly packages like Umbraco.Cms.Web.Common etc. where as your UI project will reference the main Umbraco.Cms package
Ideal project structure and dependencies
I've been re-thinking how I structure my Umbraco projects and I came across this article: https://adolfi.dev/blog/umbraco-project-structure/
In terms of dependencies, I'm slightly confused: I can understand wanting to separate out the Umbraco front-end from the Umbraco back-end logic but I don't understand how to set up refences in these scenarios.
In the article above, if Web.UI holds the Umbraco installation and Web holds the Umbraco back-end logic, shouldn't Web reference Web.UI? How do I access the Umbraco assemblies from the Web project unless I basically do two full Umbraco installations in both projects?
Thanks
No, Web.UI is your website, it references Web which contains your business logic
Thanks, Huw. I understand that, but as an example: If I'm writing custom controller logic in the Web project, how do I reference Umbraco if it's not added as a reference within the project?
Wouldn't I need to reference the Umbraco assemblies within this project too, since Web.UI references Web and not the other way around?
Sorry if this sounds like a daft question, but it's not making sense to me.
you would use one of the other umbraco assembly packages like Umbraco.Cms.Web.Common etc. where as your UI project will reference the main Umbraco.Cms package
ahhh, that's what I'd thought. So the full Umbraco installation will be in Web.UI and only the required assemblies in Web?
is working on a reply...