Go into a folder, let's say C:\MyTest
Run: dotnet new globaljson
This will create a global.json file with your current version of the dotnet CLI in it, for example:
{
"sdk": {
"version": "6.0.100-rc.2.21505.57"
}
}| using Examine; | |
| using Examine.Lucene; | |
| using Lucene.Net.Analysis.Standard; | |
| using Lucene.Net.Index; | |
| using Lucene.Net.Util; | |
| using Microsoft.Extensions.Options; | |
| using Umbraco.Cms.Core.Composing; | |
| using Umbraco.Cms.Core.Configuration.Models; | |
| using Umbraco.Cms.Core.Models; | |
| using Umbraco.Cms.Core.Scoping; |
| using Examine; | |
| using Examine.Lucene; | |
| using Microsoft.Extensions.Options; | |
| using Umbraco.Cms.Core; | |
| using Umbraco.Cms.Core.Composing; | |
| using Umbraco.Cms.Core.Security; | |
| using Umbraco.Cms.Core.Services; | |
| using Umbraco.Cms.Core.Web; | |
| namespace MyProject; |
Go into a folder, let's say C:\MyTest
Run: dotnet new globaljson
This will create a global.json file with your current version of the dotnet CLI in it, for example:
{
"sdk": {
"version": "6.0.100-rc.2.21505.57"
}
}| dotnet new umbraco -n UmbracoUnattended --connection-string "Server=GORDON\SQLExpress;Database=UmbracoUnattended;User Id=sa;Password=abc123;" | |
| cd UmbracoUnattended | |
| Set-Item Env:\UMBRACO__CMS__GLOBAL__INSTALLMISSINGDATABASE true | |
| Set-Item Env:\UMBRACO__CMS__UNATTENDED__INSTALLUNATTENDED true | |
| Set-Item Env:\UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERNAME "Test" | |
| Set-Item Env:\UMBRACO__CMS__UNATTENDED__UNATTENDEDUSEREMAIL "[email protected]" | |
| Set-Item Env:\UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERPASSWORD "test123456" | |
| dotnet add package Umbraco.TheStarterKit |
| using System; | |
| using System.Linq; | |
| using Cultiv.Site.Models; | |
| using Microsoft.AspNetCore.Mvc; | |
| using Umbraco.Cms.Core.Cache; | |
| using Umbraco.Cms.Core.Logging; | |
| using Umbraco.Cms.Core.Models.PublishedContent; | |
| using Umbraco.Cms.Core.Routing; | |
| using Umbraco.Cms.Core.Services; | |
| using Umbraco.Cms.Core.Web; |
| using System; | |
| using Hangfire; | |
| using Hangfire.Console; | |
| using Hangfire.SqlServer; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Umbraco.Cms.Core.Composing; | |
| using Umbraco.Cms.Core.DependencyInjection; | |
| using Umbraco.Cms.Web.BackOffice.Authorization; |
| <?xml version="1.0" encoding="utf-8" standalone="yes"?> | |
| <language alias="vi_vn" intName="Vietnam (Vietnamese)" localName="Vietnam (Vietnamese)" lcid="" culture="vi-VN"> | |
| <creator> | |
| <name>The Umbraco community</name> | |
| <link>https://our.umbraco.com/documentation/Extending-Umbraco/Language-Files</link> | |
| </creator> | |
| <area alias="actions"> | |
| <key alias="assignDomain">Culture and Hostnames</key> | |
| <key alias="auditTrail">Audit Trail</key> | |
| <key alias="browse">Browse Node</key> |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.IO.Compression; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Net.Http.Headers; | |
| using System.Web.Hosting; | |
| using System.Web.Http; | |
| using Umbraco.Web.WebApi; |
| ### Keybase proof | |
| I hereby claim: | |
| * I am nul800sebastiaan on github. | |
| * I am cultiv (https://keybase.io/cultiv) on keybase. | |
| * I have a public key ASAauWBO4XaKeymtplaJ1_H_AutCKhCYBSAvnEI9lIr5ZQo | |
| To claim this, I am signing this object: |
| RouteTable.Routes.MapRoute("Default", "{controller}/{action}/{id}", | |
| //Defaults | |
| new { controller = "Home", action = "Index", id = "" }, | |
| //Constraints (controller cannot start with UmbProfile, UmbRegister, UmbLogin, UmbLoginStatus or Tags) | |
| new { controller = "^(?!(UmbProfile|UmbRegister|UmbLogin|UmbLoginStatus|Tags))" }); |