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
                    
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="Gurux.DLMS.AMI.Script" Version="4.1.2611.901" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Gurux.DLMS.AMI.Script" Version="4.1.2611.901" />
                    
Directory.Packages.props
<PackageReference Include="Gurux.DLMS.AMI.Script" />
                    
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 Gurux.DLMS.AMI.Script --version 4.1.2611.901
                    
#r "nuget: Gurux.DLMS.AMI.Script, 4.1.2611.901"
                    
#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 Gurux.DLMS.AMI.Script@4.1.2611.901
                    
#: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=Gurux.DLMS.AMI.Script&version=4.1.2611.901
                    
Install as a Cake Addin
#tool nuget:?package=Gurux.DLMS.AMI.Script&version=4.1.2611.901
                    
Install as a Cake Tool

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.Generate compiles source code into an in-memory assembly using Roslyn and collects compiler diagnostics.
  • GXAmiScript.RunAsync creates a script instance and calls its public entry method (Run by default).
  • IGXAmi gives 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed