focus-creative-games / hybridclr

HybridCLR是一个特性完整、零成本、高性能、低内存的Unity全平台原生c#热更新解决方案。 HybridCLR is a fully featured, zero-cost, high-performance, low-memory solution for Unity's all-platform native c# hotupdate.
https://code-philosophy.com/
MIT License
6.61k stars 672 forks source link

热更Assembly-CSharp.dll中,函数添加[BurstCompile]属性,MethodBridge报错 #91

Closed leelnfei closed 1 year ago

leelnfei commented 1 year ago

unity:2022.3.4f1 hybridclr:3.3.0 Build Settings中Api Compatible Level是.Net Framework 新建任意脚本,添加任意函数,在新加的函数上添加[BurstCompile],执行MethodBridge,然后会抛出异常Exception: resolve AOT dll:mscorlib 失败! 请确保主工程已经引用了该dll并且正确生成了裁剪后的AOT dll。 在函数上添加[BurstCompile]是正确的,只有函数添加[BurstCompile]就会抛出异常

BUGyyc commented 11 months ago

how to do?

BUGyyc commented 11 months ago

跟我遇到的问题类似,要怎么解决?