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
Error:/[ProjectPath]/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll inject Exception! Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'UnityEngine.Purchasing.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00100] in :0
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00007] in :0
at Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00025] in :0
at Mono.Cecil.MetadataResolver.Resolve (Mono.Cecil.TypeReference type) [0x00042] in :0
at Mono.Cecil.ModuleDefinition.Resolve (Mono.Cecil.TypeReference type) [0x00006] in :0
at Mono.Cecil.TypeReference.Resolve () [0x00010] in :0
at XLua.Hotfix.isNoPublic (Mono.Cecil.TypeReference type) [0x000a1] in :0
at XLua.Hotfix.genericInOut (Mono.Cecil.MethodDefinition method, XLua.HotfixFlagInTool hotfixType) [0x0001c] in :0
at XLua.Hotfix.InjectType (Mono.Cecil.TypeReference hotfixAttributeType, Mono.Cecil.TypeDefinition type) [0x002d1] in :0
at XLua.Hotfix.HotfixInject (System.String injectAssemblyPath, System.String xluaAssemblyPath, System.Collections.Generic.IEnumerable1[T] searchDirectorys, System.String idMapFilePath, System.Collections.Generic.Dictionary2[TKey,TValue] hotfixConfig) [0x00158] in :0
触发场景
错误日志
Error:/[ProjectPath]/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll inject Exception! Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'UnityEngine.Purchasing.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00100] in :0
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00007] in :0
at Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00025] in :0
at Mono.Cecil.MetadataResolver.Resolve (Mono.Cecil.TypeReference type) [0x00042] in :0
at Mono.Cecil.ModuleDefinition.Resolve (Mono.Cecil.TypeReference type) [0x00006] in :0
at Mono.Cecil.TypeReference.Resolve () [0x00010] in :0
at XLua.Hotfix.isNoPublic (Mono.Cecil.TypeReference type) [0x000a1] in :0
at XLua.Hotfix.genericInOut (Mono.Cecil.MethodDefinition method, XLua.HotfixFlagInTool hotfixType) [0x0001c] in :0
at XLua.Hotfix.InjectType (Mono.Cecil.TypeReference hotfixAttributeType, Mono.Cecil.TypeDefinition type) [0x002d1] in :0
at XLua.Hotfix.HotfixInject (System.String injectAssemblyPath, System.String xluaAssemblyPath, System.Collections.Generic.IEnumerable
1[T] searchDirectorys, System.String idMapFilePath, System.Collections.Generic.Dictionary
2[TKey,TValue] hotfixConfig) [0x00158] in :0解决方案
尝试过将包含"Purchasing"的命名空间从[Hotfix]和[CSharpCallLua]中排除,依然失败。
需要将用到UnityEngine.Purchasing.Security的代码放进单独的程序集,让xlua完全忽略它
The text was updated successfully, but these errors were encountered: