コンパイル時に実行可能なバイナリを吐き出す C# ソリューションがあります。バイナリは、私が作成した別のソリューションの製品であるライブラリに依存しています。すべてのコードは、私が作成したものです。
最近、私はいくつかのプロジェクト設定をかなりでたらめにいじり、CLR によるリンクの構築がどのように機能するかを感じようとしました。残念ながら (予想どおり?) バイナリのリンクを切断することはできましたが、問題を解決する方法がわかりません。
- バイナリを使用すると、アプリケーションがフォールオーバーする前に次のフィードバックを受け取ります
アセンブリを読み込んでいます....アセンブリ MY.Library に型を追加できませんでした、バージョン = 1.0.0.0、カルチャ = ニュートラル、PublicKeyToken = null - 要求された型の 1 つ以上を読み込めません。詳細については、LoaderExceptions プロパティを取得してください
- MY.Library.resources DLL の Fusion ログは以下のとおりです。上記のバイナリは存在せず、どこで、なぜロードしようとしているのかわかりません。
>
All probing URLs attempted and failed
*** Assembly Binder Log Entry (22/04/2011 @ 10:34:17) ***
The operation failed. Bind result: hr
= 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll Running under executable G:\SVN\dev\Debug\MYExecutable.exe
--- A detailed error log follows.
=== Pre-bind state information === LOG: User = UBERIT\gavina LOG: DisplayName = MY.Library.resources, Version=1.0.0.0, Culture=en, PublicKeyToken=null (Fully-specified) LOG: Appbase = file:///G:/SVN/dev/Debug LOG: Initial PrivatePath = x64 LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = MYExecutable.exe Calling assembly : MY.Library, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
=== LOG: This bind starts in default load context.
LOG: Using application configuration file: G:\BuildSVN\apps\ExecSys\MYExecutable\dev\Debug\MYExecutable.exe.Config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///G:/SVN/dev/Debug/en/MY.Library.resources.DLL.
LOG: Attempting download of new URL file:///G:/SVN/dev/Debug/en/MY.Library.resources/MY.Library.resources.DLL.
LOG: Attempting download of new URL file:///G:/SVN/dev/Debug/x64/en/MY.Library.resources.DLL.
LOG: Attempting download of new URL file:///G:/SVN/dev/Debug/x64/en/MY.Library.resources/MY.Library.resources.DLL.
LOG: Attempting download of new URL file:///G:/SVN/dev/Debug/en/MY.Library.resources.EXE. LOG: Attempting download of new URL file:///G:/SVN/dev/Debug/en/MY.Library.resources/MY.Library.resources.EXE.
LOG: Attempting download of new URL file:///G:/SVN/dev/Debug/x64/en/MY.Library.resources.EXE.
LOG: Attempting download of new URL file:///G:/SVN/dev/Debug/x64/en/MY.Library.resources/MY.Library.resources.EXE.
LOG: All probing URLs attempted and failed.
- 「リソース」DLL は暗黙的ですか? それとも、必ずこの DLL への参照を持っているのでしょうか? SLN でライブラリの参照を見つけるにはどうすればよいですか?
TL;DR
- 存在しないリソース DLL への参照を削除するにはどうすればよいですか?