外部の .dll (DevExpress など) を「lib」という別のフォルダーに移動しようとしています。
app.config ファイルに次の行を追加しました。
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib" />
</assemblyBinding>
セットアップ プロジェクトを使用して、.dll ファイルを lib フォルダーに出力します。アプリケーションのセットアップは正常にインストールされますが、アプリケーションを起動すると、(VS2010 によって構成された) スプラッシュ スクリーンが表示されたり消えたりします。ディレクトリ構造は次のようになります。
// FAILS
..\MyApp\Application.exe
..\MyApp\Application.exe.config // With assemblyBinding added
..\MyApp\lib\*.dll // All dll files are here
ベース ディレクトリからロードするように application.exe.config ファイルを変更し、.dll をベース ディレクトリにコピーすると、正常に動作します。
// RUNS FINE
..\MyApp\Application.exe
..\MyApp\Application.exe.config // With assemblyBinding removed
..\MyApp\*.dll // All dll files are here
何が問題なのですか?
ありがとう。