2014-06-26 229 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.