Razor Class Libraries

Learn the structure of a Razor class library.

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 widget below contains a project created from the Razor Class Library template. Let's examine its structure.

Get hands-on with 1400+ tech skills courses.