ThingsGatewayRuntime.NOAOTPROFoundation
2.2.7
See the version list below for details.
dotnet add package ThingsGatewayRuntime.NOAOTPROFoundation --version 2.2.7
NuGet\Install-Package ThingsGatewayRuntime.NOAOTPROFoundation -Version 2.2.7
<PackageReference Include="ThingsGatewayRuntime.NOAOTPROFoundation" Version="2.2.7" />
<PackageVersion Include="ThingsGatewayRuntime.NOAOTPROFoundation" Version="2.2.7" />
<PackageReference Include="ThingsGatewayRuntime.NOAOTPROFoundation" />
paket add ThingsGatewayRuntime.NOAOTPROFoundation --version 2.2.7
#r "nuget: ThingsGatewayRuntime.NOAOTPROFoundation, 2.2.7"
#:package ThingsGatewayRuntime.NOAOTPROFoundation@2.2.7
#addin nuget:?package=ThingsGatewayRuntime.NOAOTPROFoundation&version=2.2.7
#tool nuget:?package=ThingsGatewayRuntime.NOAOTPROFoundation&version=2.2.7
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_MYSQLORM_TEST_PGSQLORM_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 | 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
- ThingsGatewayRuntime.Foundation (>= 2.2.7)
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.2.10 | 0 | 8/29/2026 |
| 2.2.8 | 27 | 8/29/2026 |
| 2.2.7 | 83 | 8/25/2026 |
| 2.2.6 | 97 | 8/21/2026 |
| 2.2.5 | 91 | 8/21/2026 |
| 2.2.4 | 102 | 8/20/2026 |
| 2.2.3 | 94 | 8/20/2026 |
| 2.2.2 | 92 | 8/19/2026 |
| 2.1.45 | 93 | 8/17/2026 |
| 2.1.39 | 108 | 8/9/2026 |
| 2.1.35 | 115 | 7/31/2026 |
| 2.1.31 | 120 | 7/23/2026 |
| 2.1.22 | 120 | 7/14/2026 |
| 2.1.10 | 116 | 7/8/2026 |
| 2.1.9 | 117 | 7/8/2026 |
| 2.1.3 | 120 | 7/7/2026 |
| 2.0.208 | 126 | 6/22/2026 |
| 2.0.151 | 142 | 5/27/2026 |
| 2.0.141 | 127 | 5/24/2026 |
| 1.0.0 | 117 | 5/24/2026 |