You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.MissingMethodException: Method not found: 'System.Reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName, System.Reflection.Emit.AssemblyBuilderAccess)'.
at XLua.CodeEmit.get_CodeEmitModule()
at XLua.CodeEmit.EmitDelegateImpl(IEnumerable`1 groups)
at XLua.ObjectTranslator.initCSharpCallLua()
at XLua.ObjectTranslator..ctor(LuaEnv luaenv, IntPtr L)
at XLua.LuaEnv..ctor()
System.MissingMethodException: Method not found: 'System.Reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName, System.Reflection.Emit.AssemblyBuilderAccess)'.
at XLua.CodeEmit.get_CodeEmitModule()
at XLua.CodeEmit.EmitDelegateImpl(IEnumerable`1 groups)
at XLua.ObjectTranslator.initCSharpCallLua()
at XLua.ObjectTranslator..ctor(LuaEnv luaenv, IntPtr L)
at XLua.LuaEnv..ctor()
如上所示,当使用net8.0调用时报如上错误。查了下说是动态加载程序集的方法在net5.0+以后变了,但我看lua库里的CodeEmit.cs程序里已经通过预编译指令区分了net framework和net5.0+,为什么还是报错呢?请大神来指点指点吧
The text was updated successfully, but these errors were encountered: