You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With .NET 6 SDK this builds and runs just fine, I believe as a result of #35980. With the .NET 7 SDK this fails with the following error:
0>/private/tmp/BlazorGeneric/BlazorGeneric/Microsoft.NET.Sdk.Razor.SourceGenerators/Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator/Counter_razor.g.cs(138,96): Error CS0400 : The type or namespace name 'TItem' could not be found in the global namespace (are you missing an assembly reference?)
0>/private/tmp/BlazorGeneric/BlazorGeneric/Microsoft.NET.Sdk.Razor.SourceGenerators/Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator/Counter_razor.g.cs(138,111): Error CS1503 : Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<string[]>' to 'Microsoft.AspNetCore.Components.EventCallback'
Expected Behavior
With .NET 6 SDK this builds and runs just fine. I expect the .NET 7 SDK to not introduce regressions.
Is there an existing issue for this?
Describe the bug
I have a component like this:
Which is used like this:
With .NET 6 SDK this builds and runs just fine, I believe as a result of #35980. With the .NET 7 SDK this fails with the following error:
Expected Behavior
With .NET 6 SDK this builds and runs just fine. I expect the .NET 7 SDK to not introduce regressions.
Steps To Reproduce
repro
Exceptions (if any)
No response
.NET Version
7.0.203
Anything else?
No response
The text was updated successfully, but these errors were encountered: