You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The blazor component library (dotnet new blazorlib) is not working properly with razor components (blazor server side). Specifically the static files that are embeded in the library are not served when the page is loaded.
To Reproduce
Steps to reproduce the behavior:
Using dotnet 3.0 preview 2 (3.0.100-preview-010184)
dotnet new razorcomponents -o RazorComponents1
dotnet new blazorlib -o RazorComponents1\BlazorLib1
Thanks @stavroskasidis for reporting this issue! This is a known limitation with the Razor Components template in Preview 2, but we are tracking addressing this limitation with issue #6349
@stavroskasidis
Until the Microsoft team get this working, I have written a project that brings this functionality back for Razor Components BlazorEmbedLibrary
If you add this to your App, it will embed the static CSS and JS files at runtime into the head of your app using browser blob storage.
You might find it useful as a workaround.
Describe the bug
The blazor component library (dotnet new blazorlib) is not working properly with razor components (blazor server side). Specifically the static files that are embeded in the library are not served when the page is loaded.
To Reproduce
Steps to reproduce the behavior:
dotnet new razorcomponents -o RazorComponents1
dotnet new blazorlib -o RazorComponents1\BlazorLib1
dotnet add RazorComponents1\RazorComponents1.App reference RazorComponents1\BlazorLib1
<Component1 />
@addTagHelper *,BlazorLib1
dotnet run --project RazorComponents1\RazorComponents1.Server
The text was updated successfully, but these errors were encountered: