2016-09-22 32 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塊金程序包。

感謝您的幫助!

回答