.Net Core 2.0中的IKVM.Runtime异常

时间:2018-07-10 12:56:32

标签: .net-core-2.0 ikvm

在.net core 2.0应用程序中使用IKVM时,在IKVM.Runtime.dll中出现以下异常:

Method not found: 'Void System.Reflection.Emit.ILGenerator.EmitCalli(System.Reflection.Emit.OpCode, System.Runtime.InteropServices.CallingConvention, System.Type, System.Type[])'.

我知道IKVM仅支持.Net Framework。那么有什么办法可以解决这个问题?

1 个答案:

答案 0 :(得分:0)

该方法已从.NET API中删除或隐藏。只需要用Java编译流API。通过将流重写为Java 6周期,您将无需调用此方法。