Skip to content

Generator incorrectly prefixes relative namespaced types with global:: #8610

@chsienki

Description

@chsienki

See dotnet/aspnetcore#47540

There is an alias @using WeatherForecast = Pages.GridRendering.WeatherForecast where the Pages namespace is relative to the containing namespace (I.e., not at the root)

We're incorrectly code-genning global::Pages.GridRendering.WeatherForecast which is not valid; we should either leave it relative or add in the full namespace of the type.

Metadata

Metadata

Assignees

Labels

area-compilerUmbrella for all compiler issuesbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions