Gurux.DLMS.AMI.Script
4.1.2611.901
dotnet add package Gurux.DLMS.AMI.Script --version 4.1.2611.901
NuGet\Install-Package Gurux.DLMS.AMI.Script -Version 4.1.2611.901
<PackageReference Include="Gurux.DLMS.AMI.Script" Version="4.1.2611.901" />
<PackageVersion Include="Gurux.DLMS.AMI.Script" Version="4.1.2611.901" />
<PackageReference Include="Gurux.DLMS.AMI.Script" />
paket add Gurux.DLMS.AMI.Script --version 4.1.2611.901
#r "nuget: Gurux.DLMS.AMI.Script, 4.1.2611.901"
#:package Gurux.DLMS.AMI.Script@4.1.2611.901
#addin nuget:?package=Gurux.DLMS.AMI.Script&version=4.1.2611.901
#tool nuget:?package=Gurux.DLMS.AMI.Script&version=4.1.2611.901
Gurux.DLMS.AMI.Script
A .NET library that adds scripting to Gurux DLMS AMI v4 (Advanced Metering Infrastructure).
Use it to customize AMI workflows with C# code: query devices, store meter values, create tasks, manage schedules and write logs through the application's repositories.
How it works
GXAmiScript.Generatecompiles source code into an in-memory assembly using Roslyn and collects compiler diagnostics.GXAmiScript.RunAsynccreates a script instance and calls its public entry method (Runby default).IGXAmigives scripts access to the execution context, supported repository operations and registered application services.
Scripts must define Gurux.DLMS.AMI.GeneratedScript.GXAmiScript with a public constructor
accepting IGXAmi. For example:
using Gurux.DLMS.AMI.Script;
namespace Gurux.DLMS.AMI.GeneratedScript
{
public class GXAmiScript
{
private readonly IGXAmi ami;
public GXAmiScript(IGXAmi ami) => this.ami = ami;
public string Run() => ami.Sender?.ToString() ?? "No sender";
}
}
The hosting AMI application supplies the service provider and registers the repositories used by scripts. This project is a library integrated into AMI, rather than a standalone application.
Build
Requires the .NET 10 SDK and the sibling Gurux.DLMS.AMI.Shared project from the AMI repository.
dotnet build Gurux.DLMS.AMI.Script.csproj
See the Gurux DLMS AMI project for more information.
License
This software is available under either of the following licenses:
- Open-source license: GNU General Public License, version 2 only (GPL-2.0-only). See LICENSE for the full license text.
- Commercial license: Available from Gurux Ltd under a separate written agreement. This option allows use under the terms of that agreement instead of GPL-2.0-only.
A valid commercial license is required to use the commercial licensing option. See Gurux Commercial License Notice.
For commercial licensing inquiries, contact Gurux Ltd.
| Product | Versions 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. |
-
net10.0
- Gurux.DLMS.AMI.Shared (>= 4.1.2611.901)
- Microsoft.AspNetCore.Components.Web (>= 10.0.14)
- Microsoft.CodeAnalysis.CSharp (>= 5.9.0)
- Microsoft.CodeAnalysis.VisualBasic (>= 5.9.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Gurux.DLMS.AMI.Script:
| Package | Downloads |
|---|---|
|
Gurux.DLMS.AMI.Agent.Worker
Gurux.DLMS.AMI.Agent.Worker implements scripting support for Gurux DLMS AMI v4. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.1.2611.901 | 0 | 11/9/2026 |
| 4.1.2611.501 | 95 | 11/5/2026 |
| 4.1.2611.402 | 88 | 11/4/2026 |
| 4.1.2611.401 | 83 | 11/4/2026 |
| 4.1.2611.301 | 139 | 11/3/2026 |
| 4.1.2611.203 | 106 | 11/2/2026 |
| 4.1.2611.202 | 99 | 11/2/2026 |
| 4.1.2611.201 | 93 | 11/2/2026 |
| 4.1.2611.102 | 96 | 11/1/2026 |
| 4.1.2611.101 | 91 | 11/1/2026 |
| 4.1.2610.3004 | 103 | 10/30/2026 |
| 4.1.2610.3003 | 95 | 10/30/2026 |
| 4.1.2610.3002 | 97 | 10/30/2026 |
| 4.1.2610.3001 | 99 | 10/30/2026 |
| 4.1.2610.2901 | 101 | 10/29/2026 |
| 4.1.2610.2802 | 100 | 10/28/2026 |
| 4.1.2610.2801 | 101 | 10/28/2026 |
| 4.1.2610.2702 | 97 | 10/27/2026 |
| 4.1.2610.2701 | 95 | 10/27/2026 |
| 4.1.2610.901 | 124 | 10/9/2026 |