2016-04-17 18 views
0

$ pライブラリを実装してゲームのスペルキャストのジェスチャを認識しようとしていますが、未処理の例外が発生しています。私は自分のWebサイトから入手したプリコンパイルされたDLLと.Net 4フレームワークでコンパイルされたDLLを使用しているので、これは問題がどこから来ているのかと推測しています。unity3dに管理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 C:\Users\Uri\Desktop\GestureSpell\GestureSpell\Assets\PDollarGestureRecognizer.dll, type System.Runtime.Versioning.TargetFrameworkAttribute 
The class System.Runtime.Versioning.TargetFrameworkAttribute could not be loaded, used in PDollarGestureRecognizer 
Can't find custom attr constructor image: C:\Users\Uri\Desktop\GestureSpell\GestureSpell\Assets\PDollarGestureRecognizer.dll mtoken: 0x0a00000d 
+0

まったく新しいフレームワーク4プロジェクトを作成して追加しましたか? DLLがまったく動作するかどうかを確認するだけですか? – pid

+0

いいえ、私が言ったように、私はちょうど私がダウンロードしたプロジェクトからdllをドラッグしました。私がダウンロードしたソリューションを再コンパイルしてテストすることをお勧めしますか? –

+0

いいえ、既にダウンロードしたソリューションがあるとは言いませんでした。あなたはDLLファイルしか持っていないようです。気にしないで。 – pid

答えて

0

.csprojファイルで真偽を変更することができます。それは場合によっては助けになります。

関連する問題