This repository supports two dotnet CLI new templates which are packaged into a single NuGet install.
This creates a simplified Visual Studio solution that is based off the ever popular HelixBase project.
I have borrowed some of the basic structure from this project, but wanted a slightly simplier starting point without Glass and other services.
Some key elements:
- Website project is included that leverages Helix Publishing Pipelines, parameters at creation exist to allow setting the publish target path
- Projects are based on the .NET Core SDK Library style
- Projects use NuGet PackageReferences
- A sample AzureDevops build pipeline YAML is include to help quick-start your CI/CD process
See the full readme in the source code
- Open a PowerShell prompt
- Change directory to your base code directory (ie: C:\Code)
- At the prompt enter
dotnet new sc-helixsln -n TheCodeAttic.Adventures --publishpath C:\Code\TheCodeAttic.Adventures\docker\src
To keep the solution simple and lightweight no Feature Modules have been included. These and additional foundation modules can be added by using the Sitecore.Helix.ModuleTemplate.
- Open a PowerShell prompt
- Change directory to the module layer folder (ie: C:\Code\TheCodeAttic.Adventures\src\Feature)
- At the prompt enter
dotnet new sc-helixmodule --projectname TheCodeAttic.Adventures --layer [Feature, Foundation, Project] --modulename HeroImageDisplay
These parameters align to creating the namespace of the project and related setup classes, thus you can think of the paramaters as follows: "projectname.layer.modulename".
- After running the new template command, you can return to Visual Studio.
- Create a solution folder within the appropriate layer
- Use the solution explorer context menu to add an existing project and select the one created in step 3.