NOTE: if you alter the defaults for either database or storage then you will need to set the corresponding connection strings in appsettings.json Generated filesĪfter executing dotnet new you should get a project containing the following files. s|-storage Specifies the storage provider that should be usedįileStorage - Use FileStorage for uploaded assetsīlobStorage - Use Azure BlobStorage for uploaded assets d|-database Specifies the database provider that should be used The following options are available when generating an empty project. Empty TemplateĬreates an empty project with Piranha that can be used as a boilerplate for general projects and API's for headless web applications. This is due to a limitation in dotnet restore. Please note that naming your project Piranha (even if it is a test project) will result in a circular reference error when you try to restore the packages. If you want to name your project differently that the current folder you can use the option -n ProjectName. The default behaviour is that the new project is named after its containing folder. When creating a new project with dotnet new you should first create a new empty folder. If you're updating an already installed template, make sure you specify the version you want to install. NET Core are installed from the CLI using the dotnet new command. If you want to add Piranha into an application, it's still a good start to create a new project from one of the templates and examine what happens in the Startup.cs. The templates are used to create a new project from scratch and not to add CMS functionality to an existing application. If you want to get started quickly the easiest way to get going is to use one of the Templates available. You can read more about dotnet new and the different standard options available here. NET CLI tool dotnet new for creating new projects which is a cross platform and IDE independent approach to project creation. Menu Contribute to Docs Contribute to Docs Project Templates
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |