Create a new project

The easiest and most convenient way to work with DotVVM is to use Visual Studio 2026, 2022 (or 2019).

If you are using a different IDE or code editor (for example, Visual Studio Code), you can create a new DotVVM application from the command line.

Create a DotVVM project using Visual Studio 2026 / 2022 / 2019

Prerequisites

First, make sure you have the DotVVM for Visual Studio extension installed:

  • Open the Extensions > Manage Extensions menu and type DotVVM in the search box.
  • Click on the Install button.
  • Restart Visual Studio so the extension can be installed.

If you cannot find the extension or if the extension reports errors when Visual Studio is started, make sure you have the latest updates of Visual Studio installed. The extension is sensitive to exact version of some Visual Studio assemblies, and it may not work properly with older releases. We recommend to check out the Release notes page to see which version of the extension is compatible with which build of Visual Studio. If you use preview versions of Visual Studio, always download the extension from the Release notes page.

Create a new project

Run Visual Studio and select Create a new project on the launch screen.

Click on Create a new project on the launch screen

Then, search for DotVVM and select DotVVM Web Application (.NET Core):

Search for DotVVM and select DotVVM Web Application (.NET Core)

In the next screen, configure which libraries, component packs or sample pages you want to include in the project.

Configure libraries, component packs and sample pages in the project

After you confirm the selection, Visual Studio will create the project. Press F5 to run the application.

See the Project structure chapter for more info about the files in the project.

Create a DotVVM project from a command line

If you want to start a new project without Visual Studio, you can install the DotVVM template using the .NET Command Line tool.

  • Run the following command to install DotVVM project template.
dotnet new --install DotVVM.Templates
  • Create a directory in which you want to install the app and navigate inside:
mkdir SampleDotvvmApp
cd SampleDotvvmApp
  • Create the project in the current folder:
dotnet new dotvvm
  • Run the project
dotnet run

See also