Dibk.Ftpb.Common.AltinnApps.SubformLayouts
1.2.3-preview
dotnet add package Dibk.Ftpb.Common.AltinnApps.SubformLayouts --version 1.2.3-preview
NuGet\Install-Package Dibk.Ftpb.Common.AltinnApps.SubformLayouts -Version 1.2.3-preview
<PackageReference Include="Dibk.Ftpb.Common.AltinnApps.SubformLayouts" Version="1.2.3-preview" />
<PackageVersion Include="Dibk.Ftpb.Common.AltinnApps.SubformLayouts" Version="1.2.3-preview" />
<PackageReference Include="Dibk.Ftpb.Common.AltinnApps.SubformLayouts" />
paket add Dibk.Ftpb.Common.AltinnApps.SubformLayouts --version 1.2.3-preview
#r "nuget: Dibk.Ftpb.Common.AltinnApps.SubformLayouts, 1.2.3-preview"
#:package Dibk.Ftpb.Common.AltinnApps.SubformLayouts@1.2.3-preview
#addin nuget:?package=Dibk.Ftpb.Common.AltinnApps.SubformLayouts&version=1.2.3-preview&prerelease
#tool nuget:?package=Dibk.Ftpb.Common.AltinnApps.SubformLayouts&version=1.2.3-preview&prerelease
Dibk.Ftpb.Common.AltinnApps.SubformLayouts
This package contains Altinn subform layout assets under ui/ and a build-time replacement
step for the placeholder #FormDataType# in JSON files.
How it works
When a project references this package:
- All
ui/**files are copied to the consuming project's output and publish folders. - After copy, a transitive MSBuild target scans
ui/**/*.jsonin the output/publish folder. - Any
#FormDataType#tokens are replaced with the value from the consuming project'sui/layout-sets.json.
The value is read from the element in layout-sets.json where id is "form".
The property used is dataType.
Requirements in the consuming project
Your application must include a ui/layout-sets.json at the project root (same level as
App.csproj) with a sets array that includes the form entry, for example:
{
"sets": [
{
"id": "form",
"dataType": "MyFormDataType"
}
]
}
Any JSON in ui/ or its subfolders can include #FormDataType# and it will be replaced
during build/publish.
Notes
- The replacement runs after files are copied to
bin/.../uiandpublish/.../ui. - If
layout-sets.jsonis missing or does not contain theformentry, no replacement is done.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- No dependencies.
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 |
|---|---|---|
| 1.2.3-preview | 66 | 2/17/2026 |
| 1.2.2-preview | 59 | 2/17/2026 |