Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错:实际项目中,碰到引用一些加密的商业插件会报错 #3

Open
RudAns opened this issue Jan 16, 2024 · 1 comment

Comments

@RudAns
Copy link

RudAns commented Jan 16, 2024

不过,通过修改Mono.Cecil过滤掉这些dll可以解决
我就提一下~~~

AssemblyResolutionException: Failed to resolve assembly: 'Sirenix.OdinInspector.Attributes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.MetadataResolver.Resolve (Mono.Cecil.TypeReference type) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ModuleDefinition.Resolve (Mono.Cecil.TypeReference type) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.TypeReference.Resolve () (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.Mixin.CheckedResolve (Mono.Cecil.TypeReference self) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.SignatureReader.ReadCustomAttributeEnum (Mono.Cecil.TypeReference enum_type) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.SignatureReader.ReadCustomAttributeElementValue (Mono.Cecil.TypeReference type) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.SignatureReader.ReadCustomAttributeElement (Mono.Cecil.TypeReference type) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.SignatureReader.ReadCustomAttributeFixedArgument (Mono.Cecil.TypeReference type) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.SignatureReader.ReadCustomAttributeConstructorArguments (Mono.Cecil.CustomAttribute attribute, Mono.Collections.Generic.Collection`1[T] parameters) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.MetadataReader.ReadCustomAttributeSignature (Mono.Cecil.CustomAttribute attribute) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.CustomAttribute.<Resolve>b__35_0 (Mono.Cecil.CustomAttribute attribute, Mono.Cecil.MetadataReader reader) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ModuleDefinition.Read[TItem] (TItem item, System.Action`2[T1,T2] read) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.CustomAttribute.Resolve () (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.CustomAttribute.get_ConstructorArguments () (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ImmediateModuleReader.ReadCustomAttributes (Mono.Cecil.ICustomAttributeProvider provider) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ImmediateModuleReader.ReadFields (Mono.Cecil.TypeDefinition type) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ImmediateModuleReader.ReadType (Mono.Cecil.TypeDefinition type) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ImmediateModuleReader.ReadTypes (Mono.Collections.Generic.Collection`1[T] types) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ImmediateModuleReader.ReadModule (Mono.Cecil.ModuleDefinition module, System.Boolean resolve_attributes) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ImmediateModuleReader.<ReadModule>b__2_0 (Mono.Cecil.ModuleDefinition module, Mono.Cecil.MetadataReader reader) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ModuleDefinition.Read[TItem] (TItem item, System.Action`2[T1,T2] read) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ImmediateModuleReader.ReadModule () (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ModuleReader.CreateModule (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ModuleDefinition.ReadModule (Mono.Disposable`1[T] stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) (at <ee112d265aad4e098cf6cf7bf2806b0e>:0)
com.bbbirder.injection.editor.InjectHelper.InjectAssembly (com.bbbirder.injection.InjectionInfo[] injections, System.String inputAssemblyPath, System.String outputAssemblyPath, System.Boolean isEditor, UnityEditor.BuildTarget buildTarget) (at Packages/[email protected]/Editor/InjectHelper.cs:46)
com.bbbirder.injection.editor.UnityInjectUtils.VisitAssembly (System.String assemblyPath, com.bbbirder.injection.InjectionInfo[] injections, System.Boolean isEditor, UnityEditor.BuildTarget buildTarget) (at Packages/[email protected]/Editor/UnityInjectUtils.cs:249)
com.bbbirder.injection.editor.UnityInjectUtils.InjectTargetMode (com.bbbirder.injection.InjectionInfo[] injections, System.Boolean isEditor, UnityEditor.BuildTarget buildTarget) (at Packages/[email protected]/Editor/UnityInjectUtils.cs:180)
com.bbbirder.injection.editor.UnityInjectUtils.InjectEditor (System.Reflection.Assembly[] assemblies) (at Packages/[email protected]/Editor/UnityInjectUtils.cs:151)
com.bbbirder.injection.editor.UnityInjectUtils.<Install>g__InjectEditorDelayed|1_3 () (at Packages/[email protected]/Editor/UnityInjectUtils.cs:119)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at <308d48a21a3e462ba091bd758b25b1e6>:0)
@labbbirder
Copy link
Owner

你好,@RudAns 。感谢你的分享,这个问题我之后会留意

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants