XrmDefinitelyTyped 7.0.0-preview.2

This is a prerelease version of XrmDefinitelyTyped.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global XrmDefinitelyTyped --version 7.0.0-preview.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local XrmDefinitelyTyped --version 7.0.0-preview.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=XrmDefinitelyTyped&version=7.0.0-preview.2&prerelease
                    
nuke :add-package XrmDefinitelyTyped --version 7.0.0-preview.2
                    

XrmDefinitelyTyped NuGet version npm version Join the chat at https://gitter.im/delegateas/XrmDefinitelyTyped

XrmDefinitelyTyped generates TypeScript declaration files based on your Dynamics 365/CRM/xRM solution.

It is the TypeScript equivalent of CrmSvcUtil, but instead of generating early-bound .NET classes for server-side code, it generates TypeScript interfaces for all your client-side coding.

Read more here

Repository layout

This repository ships two artifacts: the generator and the runtime library that consumes what it generates.

Path Artifact Registry
src/XrmDefinitelyTyped.Tool XrmDefinitelyTyped — dotnet tool, command xdt NuGet
src/XrmTyped.Shared Shared by both generators: Dataverse entity metadata, option sets, TypeScript emission plumbing, output writing
src/XrmDefinitelyTyped.Core Form generation
src/XrmQueryTyped.Core Web entity type generation for @delegateas/xrmquery
src/XrmQuery @delegateas/xrmquery — type-safe Dataverse Web API query library npm

XrmQuery used to be emitted onto disk by the tool itself via -jsLib. It is now a normal npm package with ES module exports — see src/XrmQuery/MIGRATION.md for moving off the old web-resource setup.

Releasing

Both artifacts are released by pushing a tag; the version is taken from the tag name.

git tag tool-v3.0.0     && git push origin tool-v3.0.0        # -> NuGet
git tag xrmquery-v0.1.0 && git push origin xrmquery-v0.1.0    # -> npm

Installation

Configuration

Usage

The tool runs two generators. Pick them with --generate (-g); the default is both.

xdt -o typings                      # forms and web entity types
xdt -o typings --generate forms     # form types only
xdt -o typings --generate web       # web entity types for @delegateas/xrmquery only

Web entity types land in typings/Web/<entity>.d.ts (or a single typings/Web/WebEntities.d.ts with --single-file) inside the XDT namespace, overridable with --web-namespace. Option-set types are written to typings/_internal/Enum/ by whichever generator needs them.

Configuration Options

Features

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.

This package has no dependencies.

Version Downloads Last Updated
7.0.0-preview.7 43 8/25/2026
7.0.0-preview.5 53 8/23/2026
7.0.0-preview.4 47 8/23/2026
7.0.0-preview.3 74 8/10/2026
7.0.0-preview.2 56 8/10/2026
7.0.0-preview.1 63 8/10/2026