I noticed that Umbraco Cloud creates 2 projects in the site's solution
MySite.Web
MySite.Core
I'm not sure I understand the purpose/need of the .Core project, but is this also recommended for self-hosted sites?
The reason for asking is that we are unsure if we will be using Umbraco Cloud and developing locally to start, and I don't want to find we've developed something incompatible with Umbraco Cloud if we need to use it.
I take it you have used the Uaas.cmd tool to setup your visual studio project. This creates your Umbraco website 'MySite.Web' and a 'MySite.Core' class library to manage your own custom code, Models, Controllers, Helpers etc.
It is not needed if you do not work this way. You can still add uncompiled classes to the ~/App_Code/ folder of your website.
Yes, I used the Uaas.cmd tool to see how the cloud project was created, but now that I'm creating a new site locally, I created a VS solution with an empty web application and installed the UmbracoCms package, which creates the empty Umbraco site, but not the .core class library project, and I can't seem to work out the right project to add to get the same config as the cloud .core project.
I'm just starting with Umbraco but used class libraries for private code with other CMS platforms (albeit webforms) and I want to make sure I do it right.
If your using Umbraco Cloud you need to setup your website as a website and not a web application. I would use the Uaas.cmd tool again to setup your project. You can always delete the .Core project if you dont need it.
DotNet Core Project?
I noticed that Umbraco Cloud creates 2 projects in the site's solution
I'm not sure I understand the purpose/need of the .Core project, but is this also recommended for self-hosted sites?
The reason for asking is that we are unsure if we will be using Umbraco Cloud and developing locally to start, and I don't want to find we've developed something incompatible with Umbraco Cloud if we need to use it.
I take it you have used the Uaas.cmd tool to setup your visual studio project. This creates your Umbraco website 'MySite.Web' and a 'MySite.Core' class library to manage your own custom code, Models, Controllers, Helpers etc.
It is not needed if you do not work this way. You can still add uncompiled classes to the ~/App_Code/ folder of your website.
Yes, I used the Uaas.cmd tool to see how the cloud project was created, but now that I'm creating a new site locally, I created a VS solution with an empty web application and installed the UmbracoCms package, which creates the empty Umbraco site, but not the .core class library project, and I can't seem to work out the right project to add to get the same config as the cloud .core project.
I'm just starting with Umbraco but used class libraries for private code with other CMS platforms (albeit webforms) and I want to make sure I do it right.
If your using Umbraco Cloud you need to setup your website as a website and not a web application. I would use the Uaas.cmd tool again to setup your project. You can always delete the .Core project if you dont need it.
This page explains everything:
https://our.umbraco.com/documentation/Umbraco-Cloud/Set-Up/Visual-Studio/
This link appears to have changed to:
https://our.umbraco.com/documentation/Umbraco-Cloud/Set-Up/Working-With-Visual-Studio/
is working on a reply...