How to detect a missing .NET reference at runtime?

自闭症网瘾萝莉.ら 提交于 2019-12-04 05:31:45

That is expected, since the JIT is lazy at the per-method level. Note that inlining isn't an issue here, since that is also a JIT concern, not a compiler concern.

Better options:

  • make sure the app is installed with everything it needs
  • using ilmerge or similar to create a single assembly (if possible)

Personally, I'd just use the first option.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!