I’m trying to use DevExpress Dashboard in a .NET 8 Blazor Server project, but the DevExpress CSS/JS files are not loading. The browser console shows:
Failed to load resource: the server responded with a status of 404 ()dx-blazor.js:1
I have installed the NuGet package:<PackageReference Include="DevExpress.Blazor" Version="25.1.5" /> And restored packages with dotnet restore
In my _Host.cshtml I added:
<link href="_content/DevExpress.Blazor/dx-blazor.css" rel="stylesheet" /><script src="_content/DevExpress.Blazor/dx-blazor.js"></script>
My Program.cs has:
builder.Services.AddRazorPages();builder.Services.AddServerSideBlazor();builder.Services.AddDevExpressBlazor();I have a minimal Razor page:@page "/dashboard" <DxDashboardViewer DashboardId="MyDashboard" Height="600px" />
Why are dx-blazor.js and dx-blazor.css not loading in my Blazor Server project? How can I properly reference DevExpress static files in .NET 8 Blazor Server?