LicenseServer.Templates.Core
1.1.12
dotnet add package LicenseServer.Templates.Core --version 1.1.12
NuGet\Install-Package LicenseServer.Templates.Core -Version 1.1.12
<PackageReference Include="LicenseServer.Templates.Core" Version="1.1.12" />
<PackageVersion Include="LicenseServer.Templates.Core" Version="1.1.12" />
<PackageReference Include="LicenseServer.Templates.Core" />
paket add LicenseServer.Templates.Core --version 1.1.12
#r "nuget: LicenseServer.Templates.Core, 1.1.12"
#:package LicenseServer.Templates.Core@1.1.12
#addin nuget:?package=LicenseServer.Templates.Core&version=1.1.12
#tool nuget:?package=LicenseServer.Templates.Core&version=1.1.12
LicenseServer.Templates.Core
The shared, versioned templating engine for the LicenseServer ecosystem. One engine, consumed by the license server, the LicensePanel, and the authoring tooling — so template behavior never drifts between them.
This package is Tomlyn-only and Native-AOT-clean (IsAotCompatible + IsTrimmable, reflection-free), so it can be embedded in an AOT-published host.
What's Included
- Canonical model:
ParsedTemplateand its family (ParsedService,ParsedVariable,ParsedDomain,ParsedMount) — immutable, serializer-attribute-free POCOs. - Parser: a permissive TOML parser (unknown keys ignored; source bytes never re-emitted, so signing stays byte-faithful).
- Resolution: variable resolver + helper expressions + context tokens + per-service environment resolution (layered override → template-service → shared → default).
- Discipline: the full discipline rule set + validator + manifest emitter, surfacing
Error/Warn/Infofindings with source locations.
When to Use This Package
Reference this package when you need to parse, resolve, or validate a LicenseServer template TOML — for example, to render a project wizard, to resolve a service's effective environment, or to refuse signing a template that violates a discipline rule.
using LicenseServer.Templates.Core.Parsing;
using LicenseServer.Templates.Core.Rules;
var parsed = new TomlParser().Parse(rawToml);
var result = new DisciplineValidator().Validate(parsed.Template);
if (result.Violations.Any(v => v.Severity == Severity.Error))
{
// refuse: surface the rule ids
}
Dependencies
No YamlDotNet, no reflection-heavy dependencies — keeps the AOT/trim closure clean.
Related Packages
| Package | Description |
|---|---|
| LicenseServer.Templates.Authoring | Compose/env-file parsing (YamlDotNet) + analyzer + fix proposers, built on Core |
| 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. |
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LicenseServer.Templates.Core:
| Package | Downloads |
|---|---|
|
LicenseServer.Templates.Authoring
Authoring-side helpers (compose/env parsing, analyzer, fix proposers) for LicenseServer templates, built on LicenseServer.Templates.Core. |
GitHub repositories
This package is not used by any popular GitHub repositories.