Skip to content

Blazor component library bug with Razor Components project #7300

Closed
@stavroskasidis

Description

@stavroskasidis

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:

  1. Using dotnet 3.0 preview 2 (3.0.100-preview-010184)
  2. dotnet new razorcomponents -o RazorComponents1
  3. dotnet new blazorlib -o RazorComponents1\BlazorLib1
  4. dotnet add RazorComponents1\RazorComponents1.App reference RazorComponents1\BlazorLib1
  5. Add the following code to RazorComponents1.App\Pages\Index.cshtml
    <Component1 />
  6. Add the following code to RazorComponents1\RazorComponents1.App_ViewImports.cshtml
    @addTagHelper *,BlazorLib1
  7. dotnet run --project RazorComponents1\RazorComponents1.Server

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions