I suspect this has something to do with https://github.com/dotnet/aspnetcore/issues/11406.
Move _Imports.razor in RclWithLayout into the Pages folder and you should find it works.