slua icon indicating copy to clipboard operation
slua copied to clipboard

The invoked member is not supported in a dynamic module.

Open Shark-vil opened this issue 6 years ago • 1 comments

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 avatar Oct 24 '19 13:10 Shark-vil

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 file Projects/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

Shark-vil avatar Oct 24 '19 13:10 Shark-vil