编译的时候不能Load #362
Unanswered
xiaomaoHub
asked this question in
Q&A
编译的时候不能Load
#362
Replies: 1 comment 1 reply
-
可能是 THGFJYFunctions.dll 依赖了 Microsoft.Extensions.Caching.Abstractions ,但 Microsoft.Extensions.Caching.Abstractions 并未加载,建议以插件的方式完整加载 THGFJYFunctions.dll。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
背景:我写了一个插件(见如下代码中THGFJYFunctions.dll),然后写了一个调用插件的expression,但是调用插件方法的时候报错:System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Caching.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. 我在插件中使用了缓存,各种方法都已经试过了,比如预热不加载,手动AssemblyDependencyResolver加载;使用Default域中默认程序集也不行;那这里加载不了大概是啥原因呢?
代码如下:
NatashaManagement.Preheating();
Beta Was this translation helpful? Give feedback.
All reactions