I tested the new source generators https://devblogs.microsoft.com/dotnet/introducing-c-source-generators/. My idea was to generate some blazor components, but when I run it, it always adds the .cs extension.
context.AddSource("Test.razor", "Some html");
In the build output I see compile errors coming from Test.razor.cs. Is there a specific reason why it is bound to only cs files and why this cannot work?