Ark.Framework.Infrastructure
9.1.0
dotnet add package Ark.Framework.Infrastructure --version 9.1.0
NuGet\Install-Package Ark.Framework.Infrastructure -Version 9.1.0
<PackageReference Include="Ark.Framework.Infrastructure" Version="9.1.0" />
<PackageVersion Include="Ark.Framework.Infrastructure" Version="9.1.0" />
<PackageReference Include="Ark.Framework.Infrastructure" />
paket add Ark.Framework.Infrastructure --version 9.1.0
#r "nuget: Ark.Framework.Infrastructure, 9.1.0"
#:package Ark.Framework.Infrastructure@9.1.0
#addin nuget:?package=Ark.Framework.Infrastructure&version=9.1.0
#tool nuget:?package=Ark.Framework.Infrastructure&version=9.1.0
Ark.Framework.Infrastructure
The Ark runtime: AddArk, the EF Core context, versioning, languages, editing, the published
content loader and its cache, files, access rules, the rubbish bin, references, conversions,
events and the extension points add-on packages build on.
Install
dotnet add package Ark.Framework.Infrastructure - requires Ark.Framework.Abstractions,
Ark.Framework.Jobs.Abstractions and an EF Core provider (or Ark.Framework.Sqlite).
Setup
builder.Services.AddArk<ContentTypeKey>(ark =>
{
ark.UseDatabase(db => db.UseSqlServer(connectionString)); // or ark.UseSqlite(...)
ark.MigrateDatabase = true; // apply the site's EF migrations on start
ark.DefaultLanguage = "en";
ark.SupportedLanguages = ["en", "sv"];
});
Content types are found in the site's assemblies; none needs naming. The migrations belong to
the site (dotnet ef migrations add); add one after turning on a feature that brings a table.
Main entry points
AddArk<T>(...)- registers the CMS and every feature turned on.ArkBuilder- the options and theUse...switches for optional features (files, access rules, bin, references, cache, settings store).IContentEditingService<T>- what the editing API runs on.IFileContentService<T>,IContentBinService<T>,IContentAccessService,IContentReferenceService<T>- files, the bin, access rules and references.IContentConverter,IContentMigration- change the type of stored items; one-off content changes in code.IContentUnitOfWork- one transaction whose events go out once it commits.ark.AddSystemUser(id, displayName)+IArkSystemUsers.RunAs(id)- save and publish from a job or import, attributed to a named system user.ark.AddPropertyEditor(key)- declares a property editor of the site's own;ArkFeatures.PropertyEditorslists the declared keys.ArkFeatures- which optional features and add-ons (ark.AddFeature(key)) are on, and the framework version.ArkSettings<T>- typed access to one CMS setting, such asLanguageSettings.IContentWriteHook,IContentEventRecorder,IPublishedContentLoadHook,IArkStartupTask- extension points for add-on packages.IContentReferrers- the content above an item through references (UseContentReferences).
Notes
- Built-in jobs (with
UseJobs):ark-publish-schedule,ark-staged-file-cleanup,ark-bin-cleanup. Without jobs a hosted service runs the schedule check. IContentRepositoryignores access rules; useIPublishedContentLoaderfor a public site.- Handlers run after commit, one after another, each in its own scope; one that throws is logged and the write still succeeds. Make them idempotent.
- A content migration's
Idis stored (ContentMigration:{id}inArkSettings); never change it once released. - The framework writes no SQL of its own; SQLite and SQL Server are tested.
| Product | Versions 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. |
-
net10.0
- Ark.Framework.Abstractions (>= 9.1.0)
- Ark.Framework.Jobs.Abstractions (>= 9.1.0)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.12)
- Microsoft.Extensions.Caching.Hybrid (>= 10.10.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.DependencyModel (>= 10.0.12)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on Ark.Framework.Infrastructure:
| Package | Downloads |
|---|---|
|
Ark.Framework.AspNetCore
ASP.NET Core minimal API endpoints (MapArk) for the CMS framework. |
|
|
Ark.Framework.AzureBlobStorage
Azure Blob Storage file store (UseAzureBlobStorage) for the CMS framework. |
|
|
Ark.Framework.Imaging
Image processing (thumbnails) for the CMS framework, built on SkiaSharp. Optional: turn it on with UseImaging in AddArk. |
|
|
Ark.Framework.EntraId
Microsoft Entra ID user adapter (UseEntraIdUserAdapter) for the CMS framework: roles and groups from the signed-in user's token, group overage and names from Microsoft Graph. |
|
|
Ark.Framework.Pages
Pages for the CMS framework: the page tree, URLs per language, IPageService, and the tree and by-URL endpoints (ark.UsePages, MapArkPages). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.1.0 | 0 | 11/23/2026 |
v9.1.0: Public packages, content type display texts, search sort order, Markdown images and tables
**Breaking for the CMS UI package**
- The npm package is renamed from `@ark/cms` to `@arkframework/cms` (and `@ark/cms/client` to `@arkframework/cms/client`). Change the dependency and the imports. To install a release candidate, map the scope to the cms-packages feed in `.npmrc`: `@arkframework:registry=https://pkgs.dev.azure.com/antonkronosjo/CMS/_packaging/cms-packages/npm/registry/`.
**New**
- Public packages: stable versions are published to nuget.org (`Ark.Framework.*`) and npmjs.org (`@arkframework/cms`), so a site needs no feed for them. Release candidates stay on the cms-packages feed.
- Release notes: every package carries its release's notes (`<releaseNotes>` in the `.nuspec`), shown on nuget.org.
- Content type display texts: `[DisplayText(language, name)]` on a content type, settings type, property or tab (`Tab = "..."`), repeatable per CMS language, with `Description`, and `Group` on a content type. The API sends them as `displayTexts` on `GET /api/content/types`, the creation, update and settings schemas and `GET /api/settings`. The CMS UI shows them - create picker names, descriptions and groups, field labels and help texts, tab and type names - before the site's `resources`.
- Search sort order: `o.Sorts` on `MapArkSearch` lists the index fields visitors may sort by, such as `SearchSchema.FirstPublishedField`. `GET /api/search?sort={field}&desc=true` picks one; without `sort` the order is best match first, as before. A sort the site didn't allow is a 400; a field in `o.Sorts` that can't be sorted on stops the site at startup. `searchContent` in `@arkframework/cms/client` takes `sort` and `desc`.
**Fixed**
- The CMS Markdown editor keeps images, GFM tables and raw HTML. Before, editing any text saved it without its images and tables, and with its HTML escaped. A table may be saved reformatted, with the same cells.
**Docs**
- Guide: a section on the CMS editor UI, and where stable versions and release candidates come from.
No migrations.