Dibk.Ftpb.Common.AltinnApps.SubformLayouts 1.2.3-preview

This is a prerelease version of Dibk.Ftpb.Common.AltinnApps.SubformLayouts.
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
                    
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="Dibk.Ftpb.Common.AltinnApps.SubformLayouts" Version="1.2.3-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dibk.Ftpb.Common.AltinnApps.SubformLayouts" Version="1.2.3-preview" />
                    
Directory.Packages.props
<PackageReference Include="Dibk.Ftpb.Common.AltinnApps.SubformLayouts" />
                    
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 Dibk.Ftpb.Common.AltinnApps.SubformLayouts --version 1.2.3-preview
                    
#r "nuget: Dibk.Ftpb.Common.AltinnApps.SubformLayouts, 1.2.3-preview"
                    
#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 Dibk.Ftpb.Common.AltinnApps.SubformLayouts@1.2.3-preview
                    
#: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=Dibk.Ftpb.Common.AltinnApps.SubformLayouts&version=1.2.3-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Dibk.Ftpb.Common.AltinnApps.SubformLayouts&version=1.2.3-preview&prerelease
                    
Install as a Cake Tool

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/**/*.json in the output/publish folder.
  • Any #FormDataType# tokens are replaced with the value from the consuming project's ui/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/.../ui and publish/.../ui.
  • If layout-sets.json is missing or does not contain the form entry, no replacement is done.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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