Create an ASP.NET Core 2.0+ Dashboard Application using the .NET Core CLI Tools
- 2 min to read
You can use the .NET Core command-line interface (CLI) tools to create a sample application with the ASP.NET Core 2.0+ Dashboard:
Create and open a project folder:
mkdir asp-net-core-dashboard-project cd asp-net-core-dashboard-project
Install the .NET project templates from DevExpress:
dotnet new -i DevExpress.DotNet.Web.ProjectTemplates
After installation is completed you see a list of available templates.
Go to nuget.devexpress.com, copy your DevExpress NuGet Feed URL. The API Key used in the URL is specific to your developer account. Each licensed developer should obtain their own Feed URL / API Key.
Create the ASP.NET Core Dashboard template using the
dx.dashboardshort name and DevExpress NuGet Feed URL. The
–nuget-feed) option is used to specify nuget packages feed:
dotnet new dx.dashboard -nf https://nuget.devexpress.com/<API Key>/api
You can create the dashboard template without a sample dashboard and predefined data source using the
dotnet new dx.dashboard -nf https://nuget.devexpress.com/<API Key>/api -ndd true
Run the project:
The project starts listening on the http://localhost:5000 by default. Open it in the browser to see the result.
The another quick way to create an ASP.NET Core 2.0+ Dashboard application is to use the DevExpress Template Gallery.
Describes how to create and configure dashboards in the Web Dashboard.
Provides instructions on how to integrate the Dashboard control into an ASP.NET Core application.