我对Nuget和NServiceBus(主要是NServiceBus)非常困惑。我正在使用命令:
install-package NServiceBus
这会安装3.5.0.0版本吗?我发现这很奇怪,因为我想它会拿起最新版本?所以我尝试了这个命令:
install-package NServiceBus -version 4.5.0.0
这给我带来了无法解析依赖关系NServiceBus(> 4.5.0)
的错误我需要做些什么来安装它以及为什么重定向和安装旧版本?
干杯,DS。
答案 0 :(得分: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.