-
Notifications
You must be signed in to change notification settings - Fork 9
Getting Started
f4n0 edited this page Mar 10, 2023
·
1 revision
First, you need to create a new Blazor project (or .NET Maui)
- Add Blazorgen to the dependencies.
- Add Blazorgen Services:
builder.Services.AddBlazorGen(options => {
options.ShowBreaddcrumbs = true;
} );
- If you want to implement custom security, you need to implement this interface:
builder.Services.AddScoped<ISecurity, CustomSecurity>();
- Take your
App.Razorand overwrite the contents with this:
<BlazorGenApp appAssembly="@typeof(App).Assembly"></BlazorGenApp>
- Remove all reference to bootstrap into your
_Layout.cshtmland add this
<script src="_content/BlazorGenerator/common/bootstrap.bundle.min.js" ></script>