It seems the following csproj is including my generated .razor files as it complains of duplicates if I run it twice. What it is not doing is generating the g.cs files or co