Search⌘ K
AI Features

Razor Class Libraries

Explore how Razor class libraries serve as reusable modules that enhance Blazor and Razor Pages applications. Understand their project structure, the ability to include front-end and back-end components, and how they enable code sharing across projects with Razor components, HTML, JavaScript, and CSS integration.

Razor class libraries act as reference libraries for other projects. Just like any other class library type, they cannot be launched directly. They represent reusable modules that can be added to other applications. Razor class libraries are explicitly used to add reusable components to Razor Pages and Blazor applications.

The code ...