我使用的Umbraco 5從未版本的Lucene.NET,但意識到它與Umbraco隨附的檢查捆綁的版本相沖突5(見C#: Could not load types from assembly)。我如何使Umbraco 5忽略捆綁(與檢查)Lucene.NET
而不僅僅是從\ App_Plugins目錄中刪除檢查和過時的Lucene.NET庫,我對快樂共存感興趣,其中Examine使用我的新版本的Lucene.NET。
我嘗試添加這web.config文件,但仍在使用過時的Lucene.NET庫:
<dependentAssembly>
<assemblyIdentity name="Lucene.Net" publicKeyToken="85089178b9ac3181" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.9.4.1" newVersion="2.9.4.1" />
</dependentAssembly>
Lucene.NET的新版本是2.9.4.1。
刪除舊捆綁的Lucene.NET庫會導致錯誤。
自我提醒:看看http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.100).aspx – Saustrup 2012-04-30 11:59:51