Excubo.Generators.Blazor 0.9.0

Source Generator for Blazor

There is a newer version of this package available.
See the version list below for details.
Install-Package Excubo.Generators.Blazor -Version 0.9.0
dotnet add package Excubo.Generators.Blazor --version 0.9.0
<PackageReference Include="Excubo.Generators.Blazor" Version="0.9.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Excubo.Generators.Blazor --version 0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This project improves the performance of Blazor components using source generators.

Blazor uses C#-Reflection to handle the setting of component's [Parameter]s which is slower than a compile-time approach.
The SetParametersAsync generator overrides the default reflection-based implementation of Task SetParametersAsync(ParameterView parameters) following this
recommendation by MS.

Simply add @attribute [Excubo.Generators.BetterBlazor.GenerateSetParametersAsync] to your _Imports.razor file. This enables the source generator on all components.
As sometimes you might want to override the method yourself, you can opt-out of the source generator by adding @attribute [Excubo.Generators.BetterBlazor.DoNotGenerateSetParametersAsync] to a component.

This project improves the performance of Blazor components using source generators.

Blazor uses C#-Reflection to handle the setting of component's [Parameter]s which is slower than a compile-time approach.
The SetParametersAsync generator overrides the default reflection-based implementation of Task SetParametersAsync(ParameterView parameters) following this
recommendation by MS.

Simply add @attribute [Excubo.Generators.BetterBlazor.GenerateSetParametersAsync] to your _Imports.razor file. This enables the source generator on all components.
As sometimes you might want to override the method yourself, you can opt-out of the source generator by adding @attribute [Excubo.Generators.BetterBlazor.DoNotGenerateSetParametersAsync] to a component.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Excubo.Generators.Blazor:

Package Downloads
Excubo.Blazor.Diagrams
Excubo.Blazor.Diagrams is a Blazor component library for a lightweight and highly customizable diagram component.
Excubo.Blazor.Canvas
Excubo.Blazor.Canvas is a lightweight wrapper around the canvas javascript API.
Excubo.Blazor.Grids
Excubo.Blazor.Grids is a Blazor component library for a lightweight grid component and dashboard component.
Excubo.Blazor.TreeViews
Excubo.Blazor.TreeViews is a Blazor component library for tree views.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.11.3 1,432 11/13/2020
1.11.2 1,428 11/3/2020
1.11.1 126 11/3/2020
1.11.0 178 11/2/2020
1.10.1 222 10/29/2020
1.10.0 66 10/28/2020
1.9.0 69 10/28/2020
1.8.0 77 10/27/2020
1.7.1 333 10/23/2020
1.7.0 134 10/23/2020
1.6.0 116 10/23/2020
1.5.1 147 10/22/2020
1.5.0 65 10/22/2020
1.4.1 59 10/22/2020
1.4.0 90 10/22/2020
1.3.1 94 10/22/2020
1.3.0 67 10/22/2020
1.2.0 106 10/22/2020
1.1.0 53 10/22/2020
1.0.0 90 10/21/2020
0.9.0 144 10/12/2020
Show less