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 237 11/9/2026
4.1.2611.501 127 11/5/2026
4.1.2611.402 104 11/4/2026
4.1.2611.401 99 11/4/2026
4.1.2611.301 168 11/3/2026
4.1.2611.203 112 11/2/2026
4.1.2611.202 108 11/2/2026
4.1.2611.201 102 11/2/2026
4.1.2611.102 106 11/1/2026
4.1.2611.101 104 11/1/2026
4.1.2610.3004 109 10/30/2026
4.1.2610.3003 108 10/30/2026
4.1.2610.3002 104 10/30/2026
4.1.2610.3001 113 10/30/2026
4.1.2610.2901 109 10/29/2026
4.1.2610.2802 105 10/28/2026
4.1.2610.2801 114 10/28/2026
4.1.2610.2702 104 10/27/2026
4.1.2610.2701 102 10/27/2026
4.1.2610.901 132 10/9/2026
Loading failed