Back to Devexpress

Configure a non Visual Studio Project

aspnetcore-401027-devextreme-based-controls-get-started-configure-a-non-visual-studio-project.md

latest4.2 KB
Original Source

Configure a non Visual Studio Project

  • Mar 24, 2026
  • 5 minutes to read

Note

This tutorial applies exclusively to UI Controls. To get started with other controls, refer to the following help topics:

You can develop your ASP.NET Core application without Visual Studio, for example, on MacOS, Linux, using Visual Studio Code or CLI tools.

To configure your project to use DevExtreme-based controls, follow the steps below.

Install Server-Side Packages

  1. Open the console and navigate to your project’s directory:

  2. Obtain your NuGet feed URL. Then, follow one of the installation tutorials:

  3. Install the DevExtreme.AspNet.Data and DevExtreme.AspNet.Core packages for your project:

Add Client-Side Resources

The instructions below describe how to use npm and LibMan CLI to add client-side resources (DevExtreme scripts and CSS files) to a project.

Note

You can also use Webpack or Gulp to add client-side resources.

  1. Ensure that Node.js is installed.

  2. Open the console from the project directory and run the following commands to install DevExtreme and DevExtreme AspNet Data:

  3. Install the LibMan CLI:

  4. Run the following command to initialize LibMan in your project:

  5. Add library files listed below to the libman.json file. You can modify this file or use the libman install command.

  6. Run the following command to restore library files:

  1. Open your project’s layout. Typically, it is the _Layout.cshtml file located in the Views/Shared folder (for MVC projects) or Pages folder (for Razor Pages).

  2. Link the following styles and scripts in the head section:

  3. The layout file can contain jQuery links that were added earlier (they may be placed in the <environment> containers). In this case, remove them.

Note

You can also apply bundling and minification to static resources as described in the following article: Bundle and minify static assets in ASP.NET Core.

Register the DevExtreme.AspNet.Mvc Namespace

Open the _ViewImports.cshtml file located in the Views/Shared folder or Pages folder and add the following directive to it:

@using DevExtreme.AspNet.Mvc

Configure JSON Serialization

Add the following code to ensure proper JSON serialization:

cs
builder.Services.AddRazorPages().AddJsonOptions(options => options.JsonSerializerOptions.PropertyNamingPolicy = null);

Enable Controllers

For Razor page projects, enable controllers at the top level of the application:

cs
app.MapControllers();
app.MapDefaultControllerRoute();