2016-09-22 29 views
2

我有一个Asp.Net核心项目,我正在使用RavenDB文档数据库。一切工作正常,直到我将Metrics.NET(https://github.com/etishor/Metrics.NET)添加到项目。RavenDB.Database和Metrics.Net冲突

Exception has been thrown by the target of an invocation. 
The type initializer for 'Raven.Abstractions.Util.MetricsTicker' threw an exception. 
Could not load file or assembly 'metrics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ca6c6ef570198eba' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) 
A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) 

看来,RavenDB使用自己metrics.dll具有随着到Metrics.Net当组件加载一个矛盾:既然然后加载项目时,以下问题发生。 有什么办法可以解决这个问题吗?有人有这个问题吗?我可以对Nuget或将RavenDB程序集移动到子文件夹以避免冲突的项目说吗?

我正在使用RavenDB版本3.0.30155和Metrics.Net版本0.3.7块金程序包。

感谢您的帮助!

回答