2016-11-29 24 views
0

我試圖從3.4.0到3.3.1下載對MassTransit和MassTransit的DLL引用。將MassTransit從3.4.0降級到3.3.1

我用nuget shell替換了所有實例,並驗證了沒有更多的3.4.0 AsmSpy參考實例(MassTransit和MassTransit總是被引用爲3.3.1)。

Reference: MassTransit 
    3.3.1.0 by MassTransit.RabbitMqTransport 
    3.3.1.0 by BusinessLogic 
    3.3.1.0 by Contracts 

Reference: MassTransit.RabbitMqTransport 
    3.3.1.0 by BusinessLogic 

然而,當我嘗試運行此拋出異常的代碼:

A first chance exception of type 'System.IO.FileLoadException' occurred in MyProject.Tests.dll 

Additional information: Could not load file or assembly 'MassTransit, Version=3.4.0.0, Culture=neutral, PublicKeyToken=b8e0e9f2f1e657fa' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 

我做了一個乾淨,重建,並試圖幾乎一切我能想到的。任何想法?

回答

0

原來,問題是與VS.降級庫nuget時,會引用正確的數據包,但.package和.csproj文件的內容仍可能包含舊版本(更高版本)。

對較舊(較高)庫的文本搜索顯示需要手動更正的點。