私はいくつかのプロジェクトで解決策を持っていますが、その多くはApacheのlog4netを参照しています。私は現在、私が抱えている参照の問題を解決するために、これらのプロジェクトの1つ(クラスライブラリ)を構築しようとしていますが、まだ運がありません。
警告とエラーは、Windows 8のVS2012でビルドする場合にのみ発生し、Windows7のVS2010では発生しません。
誰かが私がこれをどのように解決するかについて何か考えがありますか?警告メッセージは次のとおりです。
The primary reference "log4net" could not be resolved because it was built against the ".NETFramework,Version=v4.0.1,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".
そして、ここにエラーメッセージがあります:
The type or namespace name 'log4net' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Rune\Documents\Team Foundation Server\noOdin\Yggdrasil\OdinLib\Common.cs
The type or namespace name 'ILog' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Rune\Documents\Team Foundation Server\noOdin\Yggdrasil\OdinLib\Common.cs
log4net参照がロードされていない結果であるため、現在エラーを無視しています。
参照は、次のように私の.csprojファイルに含まれています。
<Reference Include="log4net"><HintPath>..\..\Dependencies\log4net.dll</HintPath></Reference>
このような問題は、依存関係フォルダーにlog4net.dllファイルが含まれているように見えるため、実際に警告が表示されます。
誰かが私がそれを解決する方法を知っていますか?
さらに情報が必要かどうか尋ねてください。