Ninject を参照する mono で実行されている .net アプリケーションを取得しようとしています。ここから mono ninject ビルドをダウンロードしました。
dllをアプリのbinフォルダーにコピーしました。しかし、アプリを実行すると、次の例外が発生します。
アセンブリ '...' で参照されているアセンブリ /data/sportingcharts/SCTrunk/DataLoader/bin/Debug/Ninject.dll にメソッド Ninject.Syntax.IBindingToSyntax::To<[1]>() がありません
多くの mono ビルドを試しましたが、すべて同じエラーが発生します。私のアプリケーションでバインディングを行う関数は次のようになります。
private void DefaultDALBind<Interface, Implementation>(string connectionString) where Implementation:Interface
{
Bind<Interface>().To<Implementation>().InSingletonScope().WithConstructorArgument("connectionString", connectionString);
}
また、GIT から inject の最新ソースをダウンロードしようとしましたが、Ninject.build nant スクリプトは次のエラーで失敗します。
Function call failed. Expression: ${PInvoke::IsWow64Process()}
^^^^^^^^^^^^^^^^^^^^^^^^^
IsWow64Process
私が間違っていることを知っている人はいますか?