【发布时间】:2019-07-31 12:46:00
【问题描述】:
我正在尝试将我的项目中的 log4net 从 2.0.8 降级到 2.0.0,因为我正在尝试引用版本为 2.0.0 的项目,我需要这样做,因为Apache changed the public key between these versions.
我的问题是降级后尝试运行项目时出现以下错误:
An unhandled exception of type 'System.TypeInitializationException' occurred
in Unknown Module.
The type initializer for '<Module>' threw an exception. occurred
我看不到内部异常,因为错误发生在任何代码被命中之前。
如果我将 log4net 升级回 2.0.8,错误就会停止发生。
I've tried this solution 但没有运气。
【问题讨论】:
标签: .net nuget log4net visual-studio-2019