Modrich.Sdk.Api 0.1.0

dotnet add package Modrich.Sdk.Api --version 0.1.0
                    
NuGet\Install-Package Modrich.Sdk.Api -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.Api" 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.Api" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Modrich.Sdk.Api" />
                    
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.Api --version 0.1.0
                    
#r "nuget: Modrich.Sdk.Api, 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.Api@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.Api&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Modrich.Sdk.Api&version=0.1.0
                    
Install as a Cake Tool

Modrich.Sdk.Api

Meta-package for API / backend module projects in the Modrich modular foundation for .NET 10. Contains no types — it exists to bundle the Tier 1 references an API module needs.

What it pulls in

  • Modrich.AbstractionsIModule, IApiModule, IAppModule, IModuleMigrator, IModuleSeeder, [assembly: ModuleAssembly].
  • Gatekeep.Authorization.AbstractionsIPermissionCatalog, IPermissionStore, IRolePermissionService, PermissionConstants, PermissionGroupAttribute, RequirePermissionAttribute.

It deliberately does not pull EF Core. Your module picks the persistence stack it wants (EF Core, Dapper, raw ADO, etc.).

⚠️ .Web (RCL) module projects must not reference this package — see Modrich.Sdk.Web instead. Mixing them drags EF Core (when your module adds it) into the UI module's transitive closure.

Install

dotnet add package Modrich.Sdk.Api

In your module csproj:

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

Usage

using Gatekeep.Authorization;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Modrich.Modules;

[assembly: ModuleAssembly]

namespace Acme.Orders;

public sealed class OrdersApiModule : IApiModule
{
    public string Name => "Orders";

    public IEnumerable<string> Permissions =>
    [
        "Orders.View",
        "Orders.Edit",
    ];

    public void RegisterApiDependencies(IServiceCollection services, IConfiguration configuration)
    {
        services.AddScoped<IOrderService, OrderService>();
        services.AddScoped<IModuleMigrator, OrdersMigrator>();
        services.AddScoped<IModuleSeeder,   OrdersSeeder>();
    }
}

The implicit Module.Orders.Access permission (Modrich.Modules.ModuleConstants.ModuleAccess("Orders")) is added automatically by the host's Modrich.Modularity registration.

  • Modrich.Sdk.Web — meta-package for .Web (UI/RCL) modules.
  • Modrich.Modularity — referenced by the host, not by modules.
  • Modrich.Persistence — generic migration + seed runner the host invokes.

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 86 5/23/2026
0.0.1 85 5/23/2026