Khe*_*eth 6 .net c# log4net windows-8 visual-studio-2012
我有几个项目的解决方案,其中许多项目都参考了Apache的log4net.我目前正在尝试构建其中一个项目(类库)来解决我遇到的参考问题,但还没有运气.
警告和错误仅在Windows 8上的VS2012中构建时发生,而不在Windows 7上的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>
因此,问题实际上是我得到的警告,因为它似乎在我的Dependencies文件夹中找到了我的log4net.dll文件.
谁知道我怎么解决这个问题?
如果您需要更多信息,请询问.
<SpecificVersion>False</SpecificVersion>csproj 文件中缺少 ,这强制使用特定版本的-library log4net。
添加此答案是为了将问题从未回答的列表中删除:)
| 归档时间: |
|
| 查看次数: |
1804 次 |
| 最近记录: |