OutWit.Common.Forms.MessagePack 1.0.0

dotnet add package OutWit.Common.Forms.MessagePack --version 1.0.0
                    
NuGet\Install-Package OutWit.Common.Forms.MessagePack -Version 1.0.0
                    
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="OutWit.Common.Forms.MessagePack" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OutWit.Common.Forms.MessagePack" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="OutWit.Common.Forms.MessagePack" />
                    
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 OutWit.Common.Forms.MessagePack --version 1.0.0
                    
#r "nuget: OutWit.Common.Forms.MessagePack, 1.0.0"
                    
#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 OutWit.Common.Forms.MessagePack@1.0.0
                    
#: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=OutWit.Common.Forms.MessagePack&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=OutWit.Common.Forms.MessagePack&version=1.0.0
                    
Install as a Cake Tool

OutWit.Common.Forms.MessagePack

Carries OutWit.Common.Forms on a MessagePack wire.

The form model is described once, for MemoryPack, because that is what WitRPC speaks without being asked — and it carries no other serialiser's attributes on purpose. A product standardised on MessagePack adds this package and calls it once:

FormsMessagePack.Register();

After that, FormSchema, FormValues and everything they are made of travel through that product's own entry points — ToMessagePackBytes, MessagePackClone — with no attribute added to the model.

Why a package and not one line

Registering ContractlessStandardResolver globally does the same job and loosens the whole application: after it, every unattributed type becomes serialisable, so a model of your own that has lost its [MessagePackObject] stops failing and quietly starts travelling in a different shape.

This registers a resolver scoped to the form model's assembly. Everything else is serialised exactly as it was, and a foreign unattributed type is still refused.

Why not hand-written formatters

A formatter per type is a second description of the model, kept by hand, which goes out of step the first time a field is added. The resolver delegates to contractless for its own types and is four lines long.

The cost is a slightly larger payload — member names rather than numbers — and a schema is sent once per form.

License

MIT

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 is compatible.  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 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

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.0.0 54 9/9/2026