Daml.Codegen.Intermediate 0.5.0-preview.2

Prefix Reserved
This is a prerelease version of Daml.Codegen.Intermediate.
dotnet add package Daml.Codegen.Intermediate --version 0.5.0-preview.2
                    
NuGet\Install-Package Daml.Codegen.Intermediate -Version 0.5.0-preview.2
                    
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="Daml.Codegen.Intermediate" Version="0.5.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Daml.Codegen.Intermediate" Version="0.5.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Daml.Codegen.Intermediate" />
                    
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 Daml.Codegen.Intermediate --version 0.5.0-preview.2
                    
#r "nuget: Daml.Codegen.Intermediate, 0.5.0-preview.2"
                    
#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 Daml.Codegen.Intermediate@0.5.0-preview.2
                    
#: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=Daml.Codegen.Intermediate&version=0.5.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Daml.Codegen.Intermediate&version=0.5.0-preview.2&prerelease
                    
Install as a Cake Tool

Daml.Codegen.Intermediate

The intermediate DAR contract shared by every Daml C# codegen path. It carries two things:

  • the C# types generated from intermediate_dar.proto, the versioned wire format a DAR decoder produces, and
  • the language-neutral Daml model (DarModel, DamlPackage, DamlTemplate, DamlType, …) that both producers and the emitter speak.

Producers write the protobuf; Daml.Codegen.CSharp reads it and emits C#. Reference this package directly only when you write your own producer or your own consumer of the intermediate representation.

Installation

dotnet add package Daml.Codegen.Intermediate

Usage

using Daml.Codegen.Intermediate;

IntermediateDar proto;
await using (var stream = File.OpenRead("intermediate.binpb"))
{
    proto = IntermediateDar.Parser.ParseFrom(stream);
}

License

Apache-2.0. See the repository's LICENSE file.

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 (1)

Showing the top 1 NuGet packages that depend on Daml.Codegen.Intermediate:

Package Downloads
Daml.Codegen.CSharp

C# code generator library for Daml smart contracts. Consumes an IntermediateDar protobuf (see Daml.Codegen.Intermediate) and emits strongly-typed C# bindings.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0-preview.2 57 9/9/2026
0.5.0-preview.1 64 9/2/2026