ThingsGateway.Foundation.Razor 12.4.78

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

<p align="center"> <img src="logo.svg" width = "400" height = "200" alt="The name of the image" align=center /> </p>

star star Ask DeepWiki NuGet(ThingsGateway) NuGet(ThingsGateway) License QQ

📋 项目简介

ThingsGateway 是一个开源的工业物联网(IIoT)边缘计算网关,专注于工业现场设备数据的高效采集、边缘处理与可靠转发
项目面向真实工业场景设计,强调 稳定性、高性能、可扩展性与工程可维护性,适用于工业自动化、能源、电力、制造、楼宇等多种应用环境。

ThingsGateway 采用模块化与插件化架构,支持多种工业通信协议,可在边缘侧完成数据采集、预处理、协议转换与转发,有效降低系统耦合度与云端压力,是构建工业物联网系统的基础设施组件。


🎯 核心优势

🚀 高性能运行时
基于 .NET 高性能运行时与异步模型设计,设备采集支持变量智能扫描打包与批量读取,支持高并发设备连接与数据处理。

🔧 插件化架构
南北向均采用插件化设计,支持按需扩展,方便二次开发与深度定制。

边缘计算能力
支持在边缘侧完成数据过滤、转换、预处理与规则判断,减少无效数据上云,提升系统整体响应效率。

🔒 工业级稳定性
内建断线重连、缓存与补偿机制,保障通信可靠性与数据完整性。

📦 跨平台部署
支持 Windows / Linux 等环境,可灵活部署于工控机、边缘服务器。


✨ 功能特性

📡 数据采集

  • 高性能采集
    异步非阻塞通信模型,支持海量设备的高效数据采集;变量自动扫描打包与批量读取,提升采集效率
  • 多协议支持
    支持 Modbus(RTU / TCP)、OPC 、MQTT、S7 等常见协议
  • 统一设备模型
    通道、设备、点位分层管理,清晰映射工业现场结构
  • 高可靠通信
    支持心跳检测、超时控制、自动重连与异常隔离

🔄 数据处理

  • 边缘侧预处理
    灵活的数据计算与逻辑处理,支持C#脚本扩展,支持内存变量
  • 结构化数据模型
    统一的数据抽象,便于后续北向传输、存储
  • 规则引擎
    支持基于条件的事件触发与动作执行,满足复杂业务需求

📤 数据输出

  • 多目标数据转发
    支持将数据输出至 MQTT、数据库、Web API 、Kafka 等。同时也支持建立OPCUAServer、ModbusServer、MQTTServer等服务端功能。
  • 数据缓存机制
    网络异常时支持缓存与补偿,支持失败重试、批量发送与异常处理策略

🎛️ 管理与运维

  • 集中配置管理
    统一管理协议、设备、点位与运行参数
  • 运行状态监控
    实时查看设备状态、通信状态与系统运行情况
  • 日志与诊断
    提供详细日志与异常信息,便于现场排障
  • 安全与权限控制
    满足工业与企业内部系统的安全需求

🧩 PRO 插件与商业支持

在保持 ThingsGateway 核心功能完全开源 的同时,项目还提供 PRO 付费插件,用于满足更复杂、更专业的工业通信与企业级应用需求。

PRO 插件主要面向对 协议覆盖面、稳定性、现场兼容性 要求较高的工业场景,作为开源版本的能力补充,可按需选用。


🚀 PRO 通讯协议支持

PRO 插件提供对多种 主流工业通信协议 的支持,包括但不限于:

  • FINS(欧姆龙 FINS)
  • CIP / EtherNet/IP(罗克韦尔 / Allen-Bradley)
  • MC Protocol(三菱MC)
  • IEC 60870-5-104(IEC104 北向)
  • OPC AE(报警与事件)
  • VIGOR (丰炜)
  • SECS / SECS-I / HSMS(半导体设备通信)

🚀 快速开始(Quick Start)

本节将引导你在最短时间内运行 ThingsGateway。


📦 环境要求

  • .NET: 8.0/10.0 或更高版本

方式一:下载发行版

  1. 从项目 Release 页面下载对应平台的可执行文件,解压即可使用。
  2. 运行 ThingsGateway.Server.exe(Windows)或 dotnet ThingsGateway.Server.dll(Linux)。
  3. 打开浏览器,访问 http://localhost:5000 进入管理界面。

方式二:使用 Docker 部署

  1. 确保已安装 Docker。
  2. 拉取最新的 ThingsGateway 镜像:
    docker pull registry.cn-shenzhen.aliyuncs.com/thingsgateway/thingsgateway:latest
    
  3. 运行容器:
    docker run -d -p 5000:5000 --name thingsgateway registry.cn-shenzhen.aliyuncs.com/thingsgateway/thingsgateway:latest
    
  4. 打开浏览器,访问 http://localhost:5000 进入管理界面。

方式三:从源码编译

  1. 克隆项目代码:
    git clone https://gitee.com/ThingsGateway/ThingsGateway.git
    cd ThingsGateway
    
  2. 运行应用:
    dotnet run --project src/ThingsGateway.Server/ThingsGateway.Server.csproj
    
  3. 打开浏览器,访问 http://localhost:5000 进入管理界面。

相关项目仓库

默认支持net10.0/net8.0。驱动库支持netstandard2.1/netstandard2.0/net4.62/net6.0

项目 说明
ThingsGateway.Foundation 工具库、驱动接口、驱动实现
ThingsGateway.SqlOrm 轻量级 ORM 库
ThingsGateway.AspNetCore ASP.NET Core 工具与扩展库
ThingsGateway.Admin 后台管理系统
Docs 说明文档
ThingsGateway.Plugin 网关插件扩展
ThingsGateway 工业网关平台

特别声明

ThingsGateway 项目已加入 dotNET China 组织。<br/>

dotnetchina

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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 (9)

Showing the top 5 NuGet packages that depend on ThingsGateway.Foundation.Razor:

Package Downloads
ThingsGateway.Gateway.Razor

Package Description

ThingsGateway.Debug.Razor

Package Description

ThingsGateway.Management

Package Description

ThingsGateway.Upgrade

Package Description

ThingsGateway.Gateway.Razor.Common

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
12.4.81 49 2/15/2026
12.4.80 156 2/12/2026
12.4.79 576 2/11/2026
12.4.78 253 2/10/2026
12.4.77 260 2/9/2026
12.4.76 789 2/9/2026
12.4.75 124 2/5/2026
12.4.73 311 2/5/2026
12.4.72 863 2/5/2026
12.4.71 119 2/4/2026
12.4.70 273 2/4/2026
12.4.69 111 2/4/2026
12.4.68 298 2/3/2026
12.4.67 879 2/2/2026
12.4.66 119 2/1/2026
12.4.65 135 1/31/2026
12.4.64 898 1/30/2026
12.4.63 282 1/30/2026
12.4.62 304 1/29/2026
12.4.61 863 1/29/2026
Loading failed