Dynamicweb.ProjectTemplates 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet new install Dynamicweb.ProjectTemplates::1.0.0                
This package contains a .NET Template Package you can call from the shell/command line.

Dynamicweb 10 project templates

DynamicWeb have created some custom project templates, that can be used with dotnet new, which makes it easier to get up and running on a DynamicWeb. Below you'll find the guide with the steps required to install DynamicWeb using .NET CLI

Install the template

  1. Install the latest .NET SDK

  2. Open PowerShell and install the latest version of the templates package:

    $ dotnet new install Dynamicweb.ProjectTemplates
    
  3. After this package has been installed, you can get a list of all installed project templates on your computer:

    $ dotnet new --list dw
    

All DynamicWeb 10 project templates is named Dynamicweb 10 - {name}.

Template Name          Short Name  Language  Tags
---------------------  ----------  --------  ----------------------------
Dynamicweb 10 - CMS    dw10-cms    [C#]      Dynamicweb/CMS
Dynamicweb 10 - Suite  dw10-suite  [C#]      Dynamicweb/CMS/Ecommerce/PIM

Currently, we supply the following project templates:

Suite (dw10-suite)

This template is the full setup of DynamicWeb and include all the functionality

  • Content
  • Assets
  • Users
  • Commerce
  • Products

You'll need to use this template if your project requires both Content, Commerce and PIM.

CMS (dw10-cms)

This template contain only the functionality of DynamicWeb, which is needed for running a Content website on DynamicWeb.

  • Content
  • Assets
  • Users

Creating a DynamicWeb project

Now that you have installed the dotnet new templates, you can use these to create a DynamicWeb project that can run directly from inside Visual Studio.

To create a project using the newly installed templates, you need to use this command

$ dotnet new {template name}

This mean that if you need to install the DynamicWeb 10 - Suite template, you need to enter

$ dotnet new dw10-suite

This command will create a new DynamicWeb project, which contain everthing you need to get up and running. So now you basically just need to open the project in your favorite IDE or continue using the .NET CLI.

Running DynamicWeb

If you open it in the IDE (e.g Visual Studio), then you just need to open the project and press F5 or clicking Run to build the project and launch the site. The site will be accessible as long as your IDE is running.

If you prefer to run your DynamicWeb project using the .NET ClI, then you need to navigate to the folder containing the csproj file, and enter this command

$ dotnet run

In the output of the terminal, you should be able to see which url your solution is running at, and be able to access that through your browser. If you want to provide a specific URL, you can do it like this:

$ dotnet run --urls=http://localhost:5001/

No matter if you are using an IDE or .NET CLI to run your DynamicWeb project, you will be taken to the Dynamicweb 10 installer the first time you access the site, which will guide you through setting up the Files-folder and the database.

  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.10.0 224 11/26/2024
1.9.0 191 10/29/2024
1.8.0 275 9/24/2024
1.7.0 225 8/27/2024
1.6.0 348 6/25/2024
1.5.0 254 5/28/2024
1.4.1 178 5/2/2024
1.4.0 136 4/30/2024
1.3.0 254 4/2/2024
1.2.0 650 3/5/2024
1.1.0 1,215 1/30/2024
1.0.0 1,106 6/14/2023
0.0.11 263 5/30/2023
0.0.10 248 5/24/2023
0.0.9 239 5/22/2023
0.0.8 262 4/26/2023
0.0.7 687 1/27/2023
0.0.6 714 9/7/2022
0.0.5 465 9/7/2022
0.0.4 475 9/7/2022