ThingsGatewayRuntime.NOAOTPROFoundation 2.1.31

There is a newer version of this package available.
See the version list below for details.
dotnet add package ThingsGatewayRuntime.NOAOTPROFoundation --version 2.1.31
                    
NuGet\Install-Package ThingsGatewayRuntime.NOAOTPROFoundation -Version 2.1.31
                    
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="ThingsGatewayRuntime.NOAOTPROFoundation" Version="2.1.31" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ThingsGatewayRuntime.NOAOTPROFoundation" Version="2.1.31" />
                    
Directory.Packages.props
<PackageReference Include="ThingsGatewayRuntime.NOAOTPROFoundation" />
                    
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 ThingsGatewayRuntime.NOAOTPROFoundation --version 2.1.31
                    
#r "nuget: ThingsGatewayRuntime.NOAOTPROFoundation, 2.1.31"
                    
#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 ThingsGatewayRuntime.NOAOTPROFoundation@2.1.31
                    
#: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=ThingsGatewayRuntime.NOAOTPROFoundation&version=2.1.31
                    
Install as a Cake Addin
#tool nuget:?package=ThingsGatewayRuntime.NOAOTPROFoundation&version=2.1.31
                    
Install as a Cake Tool

ThingsGatewayRuntimePRO

ThingsGatewayRuntimePRO 是 ThingsGatewayRuntime 的扩展协议和行业驱动项目。它复用开源运行时的插件模型、权限模型、调试服务和源生成器,不提供独立宿主,需要与同级 ThingsGatewayRuntime 一起构建和部署。

项目组成

模块 路径 说明
PRO 驱动基础 src/ThingsGatewayRuntime.NOAOTPROFoundation 行业协议报文、设备客户端、数据类型和底层通信实现
PRO 插件 src/ThingsGatewayRuntime.NOAOTPROPlugin 采集插件、转发插件、调试 API、权限和本地化资源
自动化测试 test/ThingsGatewayRuntime.PROTest 协议解析、驱动行为、并发、安全和配置测试

协议与插件

当前源码包含以下协议族和设备类型:

  • Allen-Bradley ControlLogix 与 PCCC。
  • CAN、DCON、EDPF-NT、HJ212。
  • IEC 104 从站、IEC 61850 客户端/服务端和 SOE 事件。
  • 汇川、凯利德、LKSIS、台信、TS550、Vigor。
  • 三菱 1E/3E、欧姆龙 FINS、Modbus C1/C20。
  • OPC AE、SECS、USB 扫码器和 ZeroMQ。

具体能力以 src/ThingsGatewayRuntime.NOAOTPROPlugin/Plugin 下的当前插件为准。采集插件继承 Runtime 的 CollectBase 体系,协议服务或转发插件继承 DataForwardBase 体系,并复用统一的动态属性和权限元数据。

依赖关系

ThingsGatewayRuntime.NOAOTPROPlugin
|-- ThingsGatewayRuntime.Application
|-- ThingsGatewayRuntime.Plugin
|-- ThingsGatewayRuntime.NOAOTFoundation
|-- ThingsGatewayRuntime.NOAOTPROFoundation
`-- ThingsGatewayRuntime.PluginsGenerator

在完整工作区中,项目会直接引用同级 Runtime 与 TAdmin 源码。单独打包时则按项目文件中声明的当前 NuGet 版本解析依赖。

构建

推荐从 ThingsGateway 目录构建聚合解决方案:

dotnet restore ThingsGatewayRuntime.slnx
dotnet build ThingsGatewayRuntime.slnx -c Release

只构建 PRO 插件:

dotnet build ThingsGatewayRuntimePRO/src/ThingsGatewayRuntime.NOAOTPROPlugin/ThingsGatewayRuntime.NOAOTPROPlugin.csproj -c Release

测试

dotnet test ThingsGatewayRuntimePRO/test/ThingsGatewayRuntime.PROTest/ThingsGatewayRuntime.PROTest.csproj -c Release

部分集成测试需要通过以下环境变量提供测试数据库,未配置时只运行不依赖外部数据库的测试:

  • ORM_TEST_MYSQL
  • ORM_TEST_PGSQL
  • ORM_TEST_SQLSERVER

开发约定

  • 新插件直接实现当前 Runtime 插件契约,不保留旧接口别名或兼容分支。
  • 驱动配置使用动态属性类型声明,不在插件中维护第二套配置模型。
  • 新增 WebApi DTO 后同步更新生成式 JSON 上下文要求。
  • 原生库和运行时文件放在插件项目的 runtimes 目录,并按目标 RID 验证发布产物。

相关资源

  • ThingsGatewayRuntime
  • ThingsGatewayStudio
  • 官方文档:https://runtime.thingsgateway.cn/
  • Gitee:https://gitee.com/diego2098/ThingsGateway
  • GitHub:https://github.com/kimdiego2098/ThingsGateway

许可证

本项目使用 Apache-2.0 协议,具体发布和使用范围以仓库许可文件为准。

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 ThingsGatewayRuntime.NOAOTPROFoundation:

Package Downloads
ThingsGatewayRuntime.NOAOTPROPlugin

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.35 101 7/31/2026
2.1.31 111 7/23/2026
2.1.22 113 7/14/2026
2.1.10 110 7/8/2026
2.1.9 113 7/8/2026
2.1.3 115 7/7/2026
2.0.208 124 6/22/2026
2.0.151 138 5/27/2026
2.0.141 125 5/24/2026
1.0.0 113 5/24/2026