Using Source Generators with Blazor components in .NET 6

added by DotNetKicks
9/7/2021 10:29:18 AM

593 Views

In this post I describe a problem I discovered when upgrading my Blazor app to .NET 6. Source generators that were working fine in .NET 5 failed to discover the Blazor components in my app, due to changes in the Razor compilation process. In this post I describe why it happened and show a workaround.


0 comments