次のエラーでクラッシュする VB.NET アプリケーションがあります。
System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks, Version=2.5.19.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Threading.Tasks, Version=2.5.19.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Microsoft.Bcl.Async ライブラリを使用しようとしています。実際に Async/Await 呼び出しを使用するプロジェクトとそれを参照するプロジェクトに Nuget 経由でインストールしました。私のコンピューターではすべてが完全に機能しますが、別のコンピューターで公開してテストすると、Async/Await を使用している部分を使用しようとすると、プログラムがクラッシュします。
System.Threading.Tasks は、Copy Local が true に設定された両方のプロジェクトで参照されます。Microsoft.Threading.Tasks は、Copy Local が true に設定された両方のプロジェクトで参照されます。これに関する他のスレッドを見たことがありますが、関連するプロジェクトにインストールされています。これらは私の app.config ファイルに含まれる行です:
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" />
</dependentAssembly>
これを設定すると何が欠けていますか? さらに情報が必要な場合はお知らせください。ありがとうございました!