IFPEN.AllotropeConverters.AllotropeModels.Commons
2026.9.0-beta.4
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
<PackageReference Include="IFPEN.AllotropeConverters.AllotropeModels.Commons" Version="2026.9.0-beta.4" />
<PackageVersion Include="IFPEN.AllotropeConverters.AllotropeModels.Commons" Version="2026.9.0-beta.4" />
<PackageReference Include="IFPEN.AllotropeConverters.AllotropeModels.Commons" />
paket add IFPEN.AllotropeConverters.AllotropeModels.Commons --version 2026.9.0-beta.4
#r "nuget: IFPEN.AllotropeConverters.AllotropeModels.Commons, 2026.9.0-beta.4"
#:package IFPEN.AllotropeConverters.AllotropeModels.Commons@2026.9.0-beta.4
#addin nuget:?package=IFPEN.AllotropeConverters.AllotropeModels.Commons&version=2026.9.0-beta.4&prerelease
#tool nuget:?package=IFPEN.AllotropeConverters.AllotropeModels.Commons&version=2026.9.0-beta.4&prerelease
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 asdouble.NaNand written back as"NaN". DateTimeValue,DateTimeStampValueandIntegerValueare 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, not0.23749999999999999on .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 | Versions 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. |
-
.NETFramework 4.8
- Microsoft.Extensions.Hosting (>= 7.0.0)
- Microsoft.Extensions.Http (>= 7.0.0)
- Microsoft.Extensions.Http.Polly (>= 7.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Threading.Channels (>= 8.0.0)
-
.NETStandard 2.0
- Microsoft.Extensions.Hosting (>= 6.0.1)
- Microsoft.Extensions.Http (>= 6.0.1)
- Microsoft.Extensions.Http.Polly (>= 5.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Threading.Channels (>= 8.0.0)
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 |