Table of Contents

Install using .NET CLI

How to install DynamicWeb 10 using .NET CLI

This article is a step-by-step guide to install a DynamicWeb 10 solution using .NET CLI.

Before you can install DynamicWeb 10 using .NET CLI follow these steps:

  1. Install .NET SDK 8.x
  2. Install SQL Server Express (or equivalent, minimum 2016 SP1) and SQL Server Management Studio Express (latest version, minimum v16)

Install the project templates package

First install the DynamicWeb Project Templates package:

  1. Open a terminal (e.g. PowerShell) and enter:

     dotnet new install Dynamicweb.ProjectTemplates
  2. 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 are named Dynamicweb 10 - {name}. Currently, we supply the following project templates:

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

This dw10-suite-template is the full setup of DynamicWeb and includes all the functionality required for Content, Commerce & PIM:

  • Content
  • Assets
  • Users
  • Commerce
  • Products

The dw10-cms-template contains only the features of necessary for running a Content website on DynamicWeb.

  • Content
  • Assets
  • Users

Creating a DynamicWeb project

Now that you have installed the DynamicWeb 10 project templates, you can use them to create a DynamicWeb 10 project.

To create a project use this command:

dotnet new {template name}

This means that if you want to use the DynamicWeb 10 - Suite template, you should to enter:

dotnet new dw10-suite

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

Running DynamicWeb

If you open it in the IDE (e.g Visual Studio) you can simply open the project, press F5 or click 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 Setup Guide the first time you access the site, which will guide you through setting up the Files-folder and the database.

Next steps

After installing DW10 locally in this manner, there are several things you may want to do:

  • You can follow the setup guide and explore DynamicWeb 10
  • You can use the installed project to provide IntelliSense for local frontend development
  • You can use the installed project to setup an environment for developing custom functionality using our extensibility points

How you go about it depends a little bit on your IDE of choice - see these guides for more detail:

You may well be able to use other IDEs - but these are the ones we supply guides for.

To top