LsMsgPack.TypeScript 2026.10.27.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global LsMsgPack.TypeScript --version 2026.10.27.1
                    
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 LsMsgPack.TypeScript --version 2026.10.27.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=LsMsgPack.TypeScript&version=2026.10.27.1
                    
nuke :add-package LsMsgPack.TypeScript --version 2026.10.27.1
                    

LsMsgPack.TypeScript (lsmsgpack-ts)

Writes TypeScript for the .NET model classes a server sends and receives with LsMsgPack's web formatters (application/x-lsmsgpack):

  • Models: a class per .NET class and struct (fields start with the values the .NET constructors set, $type with the type name, extends for base classes), interfaces, and enums as const objects.
  • A schema set: the schemas the server will write for its response types, made by the server's own code, so the TypeScript client holds them before its first request and the server refers to them (18 bytes) from the first response on.
dotnet tool install -g LsMsgPack.TypeScript

lsmsgpack-ts --assembly Shop.Api/bin/Release/net8.0/Shop.Api.dll --solution Shop.sln --out web/src/api/models.ts

The roots (the types the server responds with) come from --root <type>, [LtMsgPackSerializable(typeof(T))] in the assemblies, or --solution, which finds them as LsMsgPack's analyzers do (controller actions, calls of the serializers). --options <Type.Member> takes the server's LtMsgPackHttpOptions from a static member, so the models and schemas follow its filters, property order and type names.

Documentation: docs/TypeScriptModels.md. The server's side: complete schemas in docs/WebFormatters.md.

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.

This package has no dependencies.

Version Downloads Last Updated
2026.11.23.1 20 11/23/2026
2026.11.21.1 55 11/21/2026
2026.11.20.1 116 11/20/2026
2026.11.18.1 88 11/18/2026
2026.11.16.1 101 11/16/2026
2026.11.14.1 100 11/14/2026
2026.11.12.1 96 11/12/2026
2026.11.9.2 105 11/9/2026
2026.11.9.1 94 11/9/2026
2026.11.8.1 101 11/7/2026
2026.11.6.1 90 11/6/2026
2026.11.3.1 112 11/3/2026
2026.10.29.1 113 10/29/2026
2026.10.28.2 120 10/28/2026
2026.10.28.1 126 10/28/2026
2026.10.27.1 114 10/27/2026
2026.10.26.1 100 10/26/2026
2026.10.24.1 114 10/23/2026
2026.10.22.1 114 10/22/2026