Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Latest commit

 

History

History
16 lines (13 loc) · 708 Bytes

File metadata and controls

16 lines (13 loc) · 708 Bytes

介绍

这里是适配OpenHarmony的.NET仓库编译出的NativeAOT运行时

使用方式

  1. 确保你的项目类型是"类库", 并且.NET版本为9.0
  2. 将仓库clone到你的项目目录,并在你的项目种引入本仓库的runtime.targets文件
 <Import Project="../OpenHarmonyRuntime.Net/runtime.targets" />
  1. 通过NativeAOT发布, Rid为linux-musl-arm64或者linux-musl-x64
  2. .NET不支持跨平台发布NativeAOT,建议引入https://github.com/OpenHarmony-NET/PublishAotCross仓库
<Import Project="../../PublishAotCross/src/PublishAotCross.targets" />