更新时间:2023-01-08 20:40:11
System.Core 程序集(例如,.NET Framework 4.0的版本4.0.0.0
)当要求提供 2.0.5.0
版本时,$ c> AssemblyResolve 事件。
You can return the System.Core
assembly of your platform (e.g. version 4.0.0.0 for .NET Framework 4.0
) from the AssemblyResolve
event, when asked for the 2.0.5.0
version.
我正在通过 Load(byte [])
加载所有存储为资源的引用程序集,这也无法解析 2.0.5.0
程序集,我从 AppDomain.CurrentDomain中检索
。 System
和 System.Core
.GetAssemblies()
I am loading all my referenced assemblies stored as resources via Load(byte[])
, which also fails to resolve the 2.0.5.0
assembly, and I retrieve both System
and System.Core
from AppDomain.CurrentDomain.GetAssemblies()
.