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.