Xperience supports website development using ASP.NET Core. This development model is based on a separate Core application that handles the presentation of the live site, while the Xperience application serves as a content and administration platform.
Both Xperience and the Core application access data from the same database and use the Xperience API. Synchronization of cached content and most files is handled by the web farms feature.
You need the following environment for developing ASP.NET Core projects:
- .NET Core: .NET Core SDK 3.1.5 or newer (including .NET 5.0 and .NET 6.0 releases).
- Development environment with support for ASP.NET Core development, such as Visual Studio 2019, or Visual Studio Code.
Kentico Xperience ASP.NET Core NuGet packages
The Kentico.Xperience.AspNetCore.WebApp package contains all files and resources necessary to make your ASP.NET Core application work with the connected Xperience application.
The package has a dependency on the following packages:
- Kentico.Xperience.Libraries – contains all assemblies that you need to work with Xperience API in an external application. General Xperience API assemblies have the CMS. prefix. Installation automatically includes other third-party dependencies.
Other integration packages
Kentico.Xperience.Libraries.Tests – provides a framework for creating automated tests for the Xperience API. Contains base classes for tests and additional supporting API.
ASP.NET Core development process overview
The following section contains a brief overview to get you started with site development using ASP.NET Core. You can find a more detailed explanation of the covered areas in the linked pages.
- Create and set up an Xperience Core application
- Start by setting up your Xperience administration application and the ASP.NET Core live site.
- Define site content structure
- Define the structure of your content via the administration interface.
- Develop the Core application
- Set up features that can help build your website:
Use generated code to work with page content and other data in the Core application.
Load page content using the Xperience API. See Retrieving content for more information.
- If necessary, customize or extend the system's functionality. See Applying customizations in the Xperience environment.
- Deploy the environment