2014-06-26 264 views
0

我對Nuget和NServiceBus(主要是NServiceBus)很困惑。我正在使用命令:NServiceBus nuget包安裝3.5?

install-package NServiceBus 

This installs version 3.5.0.0?我覺得這很奇怪,因爲我想它是想要獲取最新版本?所以我想這個命令:

install-package NServiceBus -version 4.5.0.0 

這提出我

什麼,我需要做的任何想法,讓這個安裝無法解決依賴NServiceBus的誤差(> 4.5.0)和爲什麼它的偏轉與安裝舊版本?

乾杯,DS。

+0

什麼是你正在使用Visual Studio的版本,也有什麼項目的.NET版本設置爲? – sagar

+0

使用VS 2013並創建了一個基於.net 4.5的控制檯應用程序 –

+0

看看這裏http://stackoverflow.com/questions/23384514/nuget-resolves-the-wrong-version-of-package-dependency – sagar

回答

0

我只是測試它,我也得到

PM> Install-Package NServiceBus 
Attempting to resolve dependency 'NServiceBus.Interfaces (≥ 4.6.1)'. 
Installing 'NServiceBus.Interfaces 4.6.1'. 
You are downloading NServiceBus.Interfaces from NServiceBus Ltd, the license agreement to which is available at http://particular.net/LicenseAgreement. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. 
Successfully installed 'NServiceBus.Interfaces 4.6.1'. 
Installing 'NServiceBus 4.6.1'. 
You are downloading NServiceBus from NServiceBus Ltd, the license agreement to which is available at http://particular.net/LicenseAgreement. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. 
Successfully installed 'NServiceBus 4.6.1'. 

Type 'get-help about_NServiceBus' to see all available NServiceBus commands. 

Adding 'NServiceBus.Interfaces 4.6.1' to ClassLibrary1. 
Successfully added 'NServiceBus.Interfaces 4.6.1' to ClassLibrary1. 
Adding 'NServiceBus 4.6.1' to ClassLibrary1. 
Successfully added 'NServiceBus 4.6.1' to ClassLibrary1.