Site boilerplate is our starting point for building Orchard Core sites.
This template is referencing a stable build of Orchard Core (1.7.2
).
Orchard Core runs on the .NET Core. Download the latest version from https://www.microsoft.com/net/download/core.
To create a new site using the boilerplate it's quickest to use the dotnet new command. First you'll need to install the template, which is hosted on NuGet.
dotnet new -i Etch.OrchardCore.SiteBoilerplate --nuget-source https://api.nuget.org/v3/index.json
Once installed successfully, run the command below, which demonstrates all the possible parameters that are available.
dotnet new orchardcore-siteboilerplate -n Example.OrchardCore.Site -o Example.OrchardCore.Site -p "Your Site Name" -pd "Project description for your site"
Below are the different parameters that can be included in the dotnet new command. These parameters will be used in the .csproj and readme. -n & -o are parameters required by dotnet new.
Namespace and name of the .Net project e.g. Example.OrchardCore.Site
Location to place the generated output.
Project name displayed in the read me.
Project description displayed in the read me.
This template has been made available on NuGet. To create the .nupkg
file that can be published to NuGet, run the command shown below.
nuget pack ./Etch.OrchardCore.SiteBoilerplate.nuspec