【发布时间】:2017-05-29 02:26:30
【问题描述】:
我正在使用 unity3D 5。我想导入外部 my KinectDB.dll(包括我的带有实体框架的 sql server db 函数。它符合 .NET 4.5 框架)类库要统一。但是统一控制台给了我一个如下所示的错误。我搜索了这个问题好几个小时。但我无法达到完整的解决方案。我该如何解决这个问题?你有什么建议?提前致谢。
提示:我使用 .NET 3.5 框架 创建了一个示例项目。我将它导入统一。在这种情况下,Unity 不会给我一个错误。
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
Missing method .ctor in assembly -------\Assets\KinectDB.dll, type System.Runtime.Versioning.TargetFrameworkAttribute
The class System.Runtime.Versioning.TargetFrameworkAttribute could not be loaded, used in KinectDB
Can't find custom attr constructor image: Assets\KinectDB.dll mtoken: 0x0a00000e
【问题讨论】:
标签: c# entity-framework unity3d unity5