Skip to content

Blazor Microfrontend Library Template

The ConnectSoft Blazor Microfrontend Library Template produces a Blazor Server solution: a Shell host that composes one or more microfrontends (MFEs) in-process, as referenced Razor Class Libraries — not separate WebAssembly hosts, and not fronted by a BFF API. There is no Bff.Api project and no Shared.Contracts project; these do not exist in current template output. With optional tests (MSTest + bUnit) and a UI kit adapter choice at generation time.

CLI

  • Identity: ConnectSoft.Blazor.MicrofrontendLibraryTemplate
  • Short name: connectsoft-blazor-mfe
dotnet new install <path-or-package>
dotnet new connectsoft-blazor-mfe -n MyPortal.Mfe

For a standalone shell-only app, use ConnectSoft.Blazor.ShellTemplate (connectsoft-blazor-shell).

The authoring repository builds on .NET 10 (net10.0); global.json pins the 10.x SDK with rollForward.

Engine model

  • sourceName: ConnectSoft.Blazor.MicrofrontendLibraryTemplate
  • AuthoringMode: reserves authoring-only projects (including ScaffoldTests) in the template repo; the ScaffoldTests project itself is excluded from generated output via template.json source exclusion.
  • Ports: ShellPort (default 7000) uses a numeric replaces and does affect the generated launchSettings.json. BffApiPort, SelfServiceMfePort, AdminMfePort still carry a numeric replaces in template.json too (defaults 7001/7002/7003), but predate the current in-process composition model: there is no separate BFF project or separate MFE host process for them to configure. The only 7001 literal that exists in generated output is the Shell's own HTTPS port in launchSettings.json (which coincidentally shares BffApiPort's default value) — not a distinct BFF endpoint. Treat these three as vestigial.

Parameter reference: parameters.md.