找回密码
 立即注册
楼主: littleqi

[常见问题] 在unity文件夹下放入DLL文件会导致无法运行

[复制链接]
发表于 2016-3-2 21:20 | 显示全部楼层 |阅读模式
问题描述:我在网上下载了一个类似于跑酷的游戏进行学习,我在他的scripts下创建一个plugins包 放入一些我所需要的DLL文件的时候,开始运行游戏会报错:
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 E:\uintyProject\running game\Assets\CaveRun3D Assets\Scripts\Microsoft.Kinect.dll, type System.Runtime.Versioning.TargetFrameworkAttribute
The class System.Runtime.Versioning.TargetFrameworkAttribute could not be loaded, used in Microsoft.Kinect
Can't find custom attr constructor image: E:\uintyProject\running game\Assets\CaveRun3D Assets\Scripts\Microsoft.Kinect.dll mtoken: 0x0a00017d

另外我删除了这些文件,和本身plugins这个文件夹,并且将这些DLL文件放在各种位置,还是依旧会收到这些错误提示,我该怎么办?
发表于 2016-3-2 21:28 | 显示全部楼层
不导入包会吗

点评

没导入包之前不会,整个工程都是别人网上写好的可以运行的,下载下来也可以运行,我只是往里面放包就会报错  详情 回复 发表于 2016-3-4 14:11
 楼主| 发表于 2016-3-4 14:11 | 显示全部楼层
monery2 发表于 2016-3-2 21:28
不导入包会吗

没导入包之前不会,整个工程都是别人网上写好的可以运行的,下载下来也可以运行,我只是往里面放包就会报错
发表于 2017-2-15 12:53 | 显示全部楼层
顶顶多好
发表于 2017-2-15 13:21 | 显示全部楼层
难得一见的好帖
发表于 2017-2-15 12:57 | 显示全部楼层
很好哦
发表于 2017-2-15 12:53 | 显示全部楼层
不错不错
发表于 2017-2-15 13:19 | 显示全部楼层
LZ真是人才
发表于 2017-2-18 14:23 | 显示全部楼层
好帖就是要顶
发表于 2017-2-18 14:11 | 显示全部楼层
真心顶
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-4-28 15:10 , Processed in 0.115423 second(s), 29 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表