Skip to content

Getting Started

f4n0 edited this page Mar 10, 2023 · 1 revision

First, you need to create a new Blazor project (or .NET Maui)

  1. Add Blazorgen to the dependencies.
  2. Add Blazorgen Services:
builder.Services.AddBlazorGen(options => {
  options.ShowBreaddcrumbs = true;
  } );
  1. If you want to implement custom security, you need to implement this interface:
builder.Services.AddScoped<ISecurity, CustomSecurity>();
  1. Take your App.Razor and overwrite the contents with this:
<BlazorGenApp appAssembly="@typeof(App).Assembly"></BlazorGenApp>
  1. Remove all reference to bootstrap into your _Layout.cshtml and add this
<script src="_content/BlazorGenerator/common/bootstrap.bundle.min.js" ></script>

Clone this wiki locally