如何使用 Nuget 安装 Caliburn.Micro

How do I install Caliburn.Micro using Nuget

当我尝试使用 "Install-Package Caliburn.Micro.Start" 安装它时,我得到以下信息:

PM> Install-Package Caliburn.Micro.Start
Attempting to resolve dependency 'Caliburn.Micro (= 2.0.2)'.
Install-Package : 'Caliburn.Micro' already has a dependency defined for 'Caliburn.Micro.Core'.
At line:1 char:1
+ Install-Package Caliburn.Micro.Start
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Install-Package],         InvalidOperationException
+ FullyQualifiedErrorId :         NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

当我尝试 "Install-Package Caliburn.Micro" 时,我得到:

Attempting to resolve dependency 'Caliburn.Micro.Core (= 2.0.2)'.
Install-Package : 'Caliburn.Micro' already has a dependency defined for 'Caliburn.Micro.Core'.
At line:1 char:1
+ Install-Package Caliburn.Micro
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

有正确的安装方法吗?它甚至还维护了吗?

尝试指定包版本(https://www.nuget.org/packages/Caliburn.Micro):

Install-Package Caliburn.Micro -Version 2.0.2

这是我的日志:

PM> Install-Package Caliburn.Micro -Version 2.0.2
Attempting to resolve dependency 'Caliburn.Micro.Core (= 2.0.2)'.
Installing 'Caliburn.Micro.Core 2.0.2'.
Successfully installed 'Caliburn.Micro.Core 2.0.2'.
Installing 'Caliburn.Micro 2.0.2'.
Successfully installed 'Caliburn.Micro 2.0.2'.
Adding 'Caliburn.Micro.Core 2.0.2' to WpfApplication1.
Successfully added 'Caliburn.Micro.Core 2.0.2' to WpfApplication1.
Adding 'Caliburn.Micro 2.0.2' to WpfApplication1.
Successfully added 'Caliburn.Micro 2.0.2' to WpfApplication1.

原来 Caliburn Micro 没有安装在 Visual Studio 2012 的库存版本上。您必须 更新 Visual Studio 并获得更新版本的Nuget 来安装它。