IFPEN.AllotropeConverters.AllotropeModels.Commons 2026.9.0-beta.4

This is a prerelease version of IFPEN.AllotropeConverters.AllotropeModels.Commons.
dotnet add package IFPEN.AllotropeConverters.AllotropeModels.Commons --version 2026.9.0-beta.4
                    
NuGet\Install-Package IFPEN.AllotropeConverters.AllotropeModels.Commons -Version 2026.9.0-beta.4
                    
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="IFPEN.AllotropeConverters.AllotropeModels.Commons" Version="2026.9.0-beta.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IFPEN.AllotropeConverters.AllotropeModels.Commons" Version="2026.9.0-beta.4" />
                    
Directory.Packages.props
<PackageReference Include="IFPEN.AllotropeConverters.AllotropeModels.Commons" />
                    
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 IFPEN.AllotropeConverters.AllotropeModels.Commons --version 2026.9.0-beta.4
                    
#r "nuget: IFPEN.AllotropeConverters.AllotropeModels.Commons, 2026.9.0-beta.4"
                    
#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 IFPEN.AllotropeConverters.AllotropeModels.Commons@2026.9.0-beta.4
                    
#: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=IFPEN.AllotropeConverters.AllotropeModels.Commons&version=2026.9.0-beta.4&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=IFPEN.AllotropeConverters.AllotropeModels.Commons&version=2026.9.0-beta.4&prerelease
                    
Install as a Cake Tool

Allotrope Simple Model commons (C#)

A project from IFP Energies Nouvelles, a public research, innovation and training organization in the fields of energy, transport and the environment.

Shared C# models of the Allotrope Simple Model (ASM) release REC/2026/09, used by the IFPEN ASM technique packages: quantity values and their unit-specific variants, date-time and integer values, data cubes, the core documents common to every technique (data system, device, processed data, diagnostic traces, statistics, …), and the documents shared by the gas and liquid chromatography packages (device control, peak list, peak, …).

You normally do not install this package directly: install the package of your technique (see Packages), which depends on it.

ASM release REC/2026/09
Package IFPEN.AllotropeConverters.AllotropeModels.Commons 2026.9.0-beta.4
Targets .NET Standard 2.0, .NET Framework 4.8

Installation

dotnet add package IFPEN.AllotropeConverters.AllotropeModels.Commons --version 2026.9.0-beta.4

Usage

Technique packages register the commons converters in their HostConfiguration. To serialize commons models with your own options, add the converters yourself:

using System.Text.Json;
using IFPEN.AllotropeConverters.AllotropeModels.Commons.Client;
using IFPEN.AllotropeConverters.AllotropeModels.Commons.Model;

var options = new JsonSerializerOptions();
CommonsJsonConverters.AddTo(options);

var retentionTime = new QuantityValue(12.5, unit: new Option<string>("s"));
string json = JsonSerializer.Serialize(retentionTime, options);  // {"value":12.5,"unit":"s"}

ASM conventions

  • An unavailable number, written "NaN" in ASM JSON, is read as double.NaN and written back as "NaN".
  • DateTimeValue, DateTimeStampValue and IntegerValue are written by ASM either as a primitive or as a typed object ({"@type": …, "value": …}); both forms are read and keep their form when written.
  • Numbers are written in their shortest round-trip form on every target framework (0.2375, not 0.23749999999999999 on .NET Framework).

Versioning

Version 2026.9.0-beta.4 implements ASM REC/2026/09. The last version number is a patch level of these packages, not of ASM. The technique packages depend on exactly the same version of this package.

Packages

Java C# Python TypeScript
Commons Maven Central NuGet PyPI npm
Gas Chromatography Maven Central NuGet PyPI npm
Differential Scanning Calorimetry Maven Central NuGet PyPI npm
Liquid Chromatography Maven Central NuGet PyPI npm

License

The source code is licensed under CeCILL 2.1. The models are derived from the ASM JSON schemas of the Allotrope Foundation, licensed under CC BY-NC 4.0.

Source code and issues: https://github.com/ifpen/AllotropeSimpleModelsClassGeneration.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on IFPEN.AllotropeConverters.AllotropeModels.Commons:

Package Downloads
IFPEN.AllotropeConverters.AllotropeModels.Hplc

Liquid Chromatography models for reading and writing Allotrope Simple Model (ASM) REC/2026/09 JSON in C#.

IFPEN.AllotropeConverters.AllotropeModels.Dsc

Differential Scanning Calorimetry models for reading and writing Allotrope Simple Model (ASM) REC/2026/09 JSON in C#.

IFPEN.AllotropeConverters.AllotropeModels.Gc

Gas Chromatography models for reading and writing Allotrope Simple Model (ASM) REC/2026/09 JSON in C#.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.9.0-beta.4 64 11/30/2026
2026.9.0-beta.3 137 11/20/2026
2026.9.0-beta.2 84 11/19/2026
2026.9.0-beta.1 104 11/19/2026