简体   繁体   中英

how to create an umbraco site programatically

how to create an umbraco site programatically? the following url creates a basic site but does not involve any coding. How do we create a site through coding in visual studio by installing umbraco through nuget? Does anyone know any tutorials to start creating a site through coding?

https://our.umbraco.org/documentation/Tutorials/Creating-Basic-Site/Getting-Started

My standard approach is to create a blank ASP.Net website, no need to specify MVC or anything; then in the new project just grab the UmbracoCMS NuGet Package, build and run - you'll be presented with the Installer screen the first time through.

I also create a separate project - something lime "MyWebsite.Code" and use NuGet to install the UmbracoCMS.Core package to get the dlls and their dependencies; that way I can separate out the business logic, controllers for views, models, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM