登录 注册
自动化与工作流
6,735
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
C#
语言
—
创建时间
最近更新

项目能做什么

用于在运行时对 .NET 和 Mono 方法进行补丁、替换和修饰的库。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
	<img src="https://raw.githubusercontent.com/pardeike/Harmony/master/HarmonyLogo.png" alt="Harmony" width="180" /><br>
	<b>Version 2.4</b><br>
	A library for patching, replacing and decorating<br>
	.NET and Mono methods during runtime.
</p>

This branch maintains Harmony 2.x. Harmony 3 development, including Infix patching, is on [v3](https://github.com/pardeike/Harmony/tree/v3).

### About

Harmony gives you an elegant and high level way to alter the functionality in applications written in C#. It works great in games and is well established in titles like

• **Rust**
• **Rimworld**
• **7 Days To Die**
• **Stardew Valley**
• **Subnautica**
• **Oxygen Not Included**
• **Besiege**
• **Cities:Skylines**
• **Kerbal Space Program**
• **Resonite**
• **BattleTech**
• **Slime Rancher**
• **Genshin Impact Miliastra Wonderland**

and others like Ravenfield, Sheltered, Staxel, The Ultimate Nerd Game, Total Miner, Unturned, SCP: Secret Laboratory ...

It is also used in unit testing WPF controls at Microsoft and Google and in many other areas.

### How it works

If you develop in C# and your code is loaded as a module/plugin into a host application, you can use Harmony to alter the functionality of all the available assemblies of that application. Where other patch libraries simply allow you to replace the original method, Harmony goes one step further and gives you:

• A way to keep the original method intact
• Execute your code before and/or after the original method
• Modify the original with IL code processors
• Multiple Harmony patches co-exist and don't conflict with each other
• Works at runtime and does not touch any files

### Installation

If you want a single file, dependency-merged assembly, you should use the [Lib.Harmony](https://www.nuget.org/packages/Lib.Harmony) nuget package. This is the **preferred** way.

If you instead want to supply the dependencies yourself, you should use the [Lib.Harmony.Thin](https://www.nuget.org/packages/Lib.Harmony.Thin) nuget package. You get more control but you are responsible to make all references available at runtime.

### Documentation

Please check out the [documentation](https://harmony.pardeike.net) and join the official [discord server](https://discord.gg/xXgghXR).

### Contribute

I put thousands of hours into this project and its support. So every little action helps:

• Become a [GitHub sponsor](https://github.com/sponsors/pardeike) or a [Patreon](https://www.patreon.com/pardeike)
• Upvote this [stackoverflow answer](https://stackoverflow.com/questions/7299097/dynamically-replace-the-contents-of-a-c-sharp-method/42043003#42043003)
• Spread the word in your developer communities

This project uses the great [MonoMod.Core](https://github.com/MonoMod) library by [0x0ade](https://github.com/0x0ade) and [nike4613](https://github.com/nike4613).

### Harmony 1

Harmony 1 is deprecated and not under active development anymore. The latest version of it (v1.2.0.1) is stable and contains on
阅读完整原文

项目深度分析 AI 生成

Harmony Patch 可视化排查与冲突分析桌面工具 (Harmony DevStudio)

产品构想针对使用 Harmony 的游戏玩家与 Mod 开发者,提供一套可视化的运行时 Hook 堆栈追踪、IL 补丁前后对比、执行耗时监控以及 Mod 冲突智能定位工具。
核心功能运行时附加进程检查已注入的 Harmony 补丁树;IL 操作码前后反编译可视化对比;Prefix/Postfix 性能开销 Profiler;多 Mod 补丁冲突顺序排查与模拟预测。
目标用户游戏 Mod 开发者、重度 Mod 玩家、游戏社区技术支持团队。
难度/周期中等 · 2 - 3 个月 · 成本:极低(主要为本地桌面端开发,可基于 Avalonia/WPF 编写)
收费模式Freemium 模式(基础补丁查看免费,高阶 IL 仿真回溯、Mod 冲突一键修复报告采用买断制或 Patreon 订阅赞助)。
竞争风险游戏反作弊软件(如 EAC、BattlEye)可能误报该调试工具;需要持续跟进 Harmony 2/3 及底层 MonoMod 的更新。
依据 已验证事实(Harmony 已在数十款知名游戏中被海量 Mod 采用,存在复杂补丁堆叠与冲突痛点)

企业级 .NET 遗留系统热补丁与无侵入监控 SDK

产品构想将 Harmony 的运行时 Hook 能力封装为面向企业 IT 运维与旧系统维护的商用 SDK,用于在不停止服务、不重新编译部署遗留系统的情况下,进行热补丁修复(Hotfix)与 API 调用遥测采集。
核心功能远程分发与动态注入热修复补丁;无侵入式 APM(应用性能监控)探针织入;运行时崩溃与异常拦截恢复;配置化规则中心与补丁回滚机制。
目标用户维护大型旧版 .NET Framework/WPF/WinForms 系统的企业架构师、运维工程师。
难度/周期高 · 3 - 5 个月 · 成本:中等(需搭建远程规则服务,投入长期的企业级稳定性测试成本)
收费模式B2B 商业授权(按每节点/年费收取 License 费用,提供专属技术支持与 SLA)。
竞争风险企业生产环境对运行时 Hook 稳定性极其敏感,崩溃可能导致法律与服务责任;部分受管网络禁止动态注入行为。
依据 数据支持的判断(README 提及微软与 Google 已将其用于 WPF 测试,表明其在企业级测试及非游戏场景已具备可行性)

Unity 独立游戏官方 Mod 接入与安全沙箱中间件

产品构想面向商业独立游戏工作室,提供一套开箱即用的官方 Mod 框架套件,基于 Harmony 实现安全受控的方法暴露、Mod 隔离沙箱与权限管理,降低工作室自建 Mod 体系的技术门槛。
核心功能官方 API 白名单 Hook 映射;阻止危险 IL 指令与恶意系统调用(沙箱限制);可视化 Mod 管理面板;Mod 兼容性版本检查与热重载接口。
目标用户希望支持 Steam Workshop 等 Mod 生态的 Unity/C# 游戏工作室、独立游戏制作人。
难度/周期高 · 3 - 6 个月 · 成本:低(主要依赖研发时间投入)
收费模式Unity Asset Store / 独立分发商业授权(单游戏买断授权或商业版年费支持)。
竞争风险独立游戏团队付费意愿受游戏销量影响;彻底限制 IL 级别的任意内存访问难度极大,沙箱存在被绕过的安全风险。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
Awesome-HarmonyOS/HarmonyOS 中文介绍暂未生成
A curated list of awesome things related to HarmonyOS. 华为鸿蒙操
20,018 C
openai/harmony 中文介绍暂未生成
Renderer for the harmony response format to be used with gpt
4,538 Rust
Zitann/HarmonyOS-Haps 中文介绍暂未生成
⚡️鸿蒙Next Hap安装包合集,如果您觉得有帮助,还请点亮一下 Star 🌟 哦~ 万分感谢!
3,931 Python
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 64 个 Release
社区活跃Star 6,735 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。