Skip to content

umbraco/Package.Templates

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Umbraco Package Templates

This repository contains some templates for starting new Umbraco package projects, and adding things to existing Umbraco projects.

The templates can be used via the dotnet new command.

UI Examples

One of the templates being developed adds a 'UI Examples' section to your Umbraco website. UI Examples has also been released as a package on Our, so you can add this to your site by installing that package from there. The source code for UI Examples is in the Item Template, and has its own contribution guidelines.

Pre-requisite

You must be using Visual Studio 2019 to work with these templates.

Installation

You can install all the templates from a NuGet package:

dotnet new -i Umbraco.Tools.Packages.Templates

Updating

To check for any updates you can run the dotnet new --update-check command.

The dotnet new --update-apply command will update any of the installed template packages you have installed.

Usage

All Umbraco package templates are prefixed umbraco-. To see what Umbraco related templates you have installed:

dotnet new umbraco -l

You can get a list of all available templates in the docs

Example: To start a new package project

Supply the name of the project on the command line, this will setup the namespaces and folders within the project:

dotnet new umbraco-v8-package -n MySuperNewPackage

Contributing

Contributions are welcome! Please read our Contribution Guidelines for the steps to add new templates.

Developing your own templates

If you want to develop/extend these templates for your own use you should install them individually from your source folder. For example:

dotnet new -i c:\source\Package.Templates\ItemTemplates\Dashboard

About

No description or website provided.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published