Modrich.Sdk.Web 0.1.0

dotnet add package Modrich.Sdk.Web --version 0.1.0
                    
NuGet\Install-Package Modrich.Sdk.Web -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Modrich.Sdk.Web" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Modrich.Sdk.Web" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Modrich.Sdk.Web" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Modrich.Sdk.Web --version 0.1.0
                    
#r "nuget: Modrich.Sdk.Web, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Modrich.Sdk.Web@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Modrich.Sdk.Web&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Modrich.Sdk.Web&version=0.1.0
                    
Install as a Cake Tool

Modrich.Sdk.Web

Meta-package for .Web (Razor Class Library) module projects in the Modrich modular foundation for .NET 10. Contains no types — it exists to bundle the Tier 1 references a UI module needs without dragging EF Core into the transitive closure.

What it pulls in

  • Modrich.AbstractionsIModule, IAppModule, layout slots (LayoutSections, IModuleLayoutWidget).
  • Gatekeep.Authorization.AbstractionsIPermissionCatalog, PermissionConstants, etc.
  • Modrich.Web — host-side web helpers, including CookieForwardingHandler (namespace Modrich.Web.Authorization).
  • Modrich.Navigation.AbstractionsIMainMenuProvider, IModuleMenuProvider, JsonModuleMenuProvider, NavItem, MenuItem.

Compare to Modrich.Sdk.Api: that one pulls in API-side abstractions for backend modules. This one is for the .Web (RCL) project that owns Razor components, menus, and UI-side DI.

Install

dotnet add package Modrich.Sdk.Web

In your module's RCL csproj:

<Project Sdk="Microsoft.NET.Sdk.Razor">
  <ItemGroup>
    <PackageReference Include="Modrich.Sdk.Web" />
  </ItemGroup>
</Project>

Usage — the App module

using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Modrich.Layout;
using Modrich.Modules;
using Modrich.Navigation;

[assembly: ModuleAssembly]

namespace Acme.Orders.Web;

public sealed class OrdersAppModule : IAppModule
{
    public string Name => "Orders";

    public void RegisterAppDependencies(IServiceCollection services, IConfiguration configuration, string? apiBaseUrl = null)
    {
        services.AddSingleton<IMainMenuProvider, OrdersMainMenuProvider>();

        services.AddSingleton<IModuleMenuProvider>(_ =>
            JsonModuleMenuProvider.FromEmbeddedResource(
                routePrefix:  "orders",
                resourceType: typeof(Resources.Strings),
                assembly:     typeof(OrdersAppModule).Assembly,
                resourceName: "Acme.Orders.Web.menu.json"));

        services.AddSingleton<IModuleLayoutWidget>(new ModuleLayoutWidget(typeof(Components.OrdersFooterBadge)));
    }

    public void ConfigureAppPipeline(WebApplication app) { /* optional */ }

    public void MapAppEndpoints(IEndpointRouteBuilder endpoints) { /* optional */ }
}

Usage — slotting UI into the host shell

A layout widget targets a named region:

@* Components/OrdersFooterBadge.razor *@
<SectionContent SectionName="@LayoutSections.Footer">
    <span>Orders module v@(Version)</span>
</SectionContent>

Available slots:

  • LayoutSections.TopLeft
  • LayoutSections.TopRight
  • LayoutSections.SidebarTop
  • LayoutSections.SidebarBottom
  • LayoutSections.Footer
  • Modrich.Sdk.Api — meta-package for API/backend modules.
  • Modrich.Navigation.Abstractions — menu types this package re-exposes.
  • Modrich.Modularity — host-side; not for modules.

Versioning

Pinned to the same major as the underlying Tier 1 packages.

License

MIT.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 94 5/23/2026
0.0.1 93 5/23/2026