Skip to content

Blazor: _Imports.razor not working #9552

@rjmr97

Description

@rjmr97

Describe the bug

Trying to import a namespace inside _Imports.razor to use in multiple files inside the folder but it doesn't work on the new version (details below). Placing the @using inside the file itself does work.

To Reproduce

Visual Studio Community 2019 16.0.2
ASP.NET Core & .NET Core 3.0.100-preview4-011223
Blazor 3.0.0-preview4-19216-03

dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview4-19216-03
dotnet new blazorlib
create files according to the screenshot

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions