pangweiwei / slua

Fastest lua binding via static code generating for Unity3D and mono.
MIT License
1.39k stars 437 forks source link

The invoked member is not supported in a dynamic module. #288

Open Shark-vil opened 4 years ago

Shark-vil commented 4 years ago

Compile LuaObject to DLL. Error text: NotSupportedException: The invoked member is not supported in a dynamic module. System.Reflection.Emit.AssemblyBuilder.get_CodeBase () (at <7d97106330684add86d080ecf65bfe69>:0) SLua.LuaCodeGen.CompileDLL () (at Assets/Slua/Editor/LuaCodeGen.cs:532)

Shark-vil commented 4 years ago

I tried to fix it somehow, it didn’t work out very well. image

Error 1: error CS2001: Source file E:/Unity' could not be found error CS2001: Source fileProjects/FirstExp/Assets/AssemblyInfo.cs' could not be found UnityEngine.Debug:LogError(Object) SLua.LuaCodeGen:CompileDLL() (at Assets/Slua/Editor/LuaCodeGen.cs:643)

Error 2: Assets\AssemblyInfo.cs(1,12): error CS0619: 'UnityAPICompatibilityVersionAttribute.UnityAPICompatibilityVersionAttribute(string)' is obsolete: 'This overload of the attribute has been depreacted. Use the constructor that takes the version and a boolean'

image