2014-09-10 24 views
-1

我開發了一個.NET DLL,依賴於版本10.1.2的第三方DLL,並具有publickeytoken等 現在,這個第三方DLL是與新版本11.0發佈。我想從我的.net dll中使用這個新版本。我不想重新編譯新版本的第三方DLL。相反,我可以有我的DLL的清單xml文件動態定義第三方DLL版本?.NET設置清單文件的第三方DLL版本依賴關係

這是清單文件的目的?

+1

.NET不使用清單文件。你可以在你的app.exe.config文件中使用''bindingRedirect>'運轉命運之輪。 – 2014-09-10 15:22:41

回答

0

基本上,我增加了以下內容的app.config

<dependentAssembly> 
    <assemblyIdentity name="Microsoft.AnalysisServices.AdomdClient" 
         publicKeyToken="89845dcd8080cc91" 
         culture="neutral" /> 
<bindingRedirect oldVersion="10.0.0.0" newVersion="11.0.0.0" /> 
    </dependentAssembly> 

,要花care.Thanks漢斯。