-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Trying RazorBlade 0.6.0 and can't seem to compile even a simple example called Basic.cshtml, like:
@inherits RazorBlade.HtmlTemplate<int>
<button>@Model</button>This fails with:
1>C:\repos\SqsRB\SqsRB\obj\Debug\net9.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Basic_cshtml.g.cs(32,67,32,79): error CS0507: 'Basic.ExecuteAsync()': cannot change access modifiers when overriding 'protected internal' inherited member 'RazorTemplate.ExecuteAsync()' 1>C:\repos\SqsRB\SqsRB\obj\Debug\net9.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Basic_cshtml.g.cs(65,80,65,84): warning CS0108: 'Basic.Html' hides inherited member 'HtmlTemplate.Html'. Use the new keyword if hiding was intended.
I haven't added any other code, it's just the standard minimal APIs project template, and then I added Basic.cshtml. I also tried a template with an explicit Model property and that didn't work either, same issue.