尝试按此PM> Install-Package Ext.NET.MVC
进行安装时,我收到此错误。
错误明细:
PM> Install-Package Ext.NET.MVC
Attempting to resolve dependency 'Ext.NET.Utilities (≥ 2.4.0)'.
Attempting to resolve dependency 'Transformer.NET (≥ 2.1.1)'.
Install-Package : '2.1.1-PREVIEW' is not a valid version string.
Parameter name: version
At line:1 char:1
+ Install-Package Ext.NET.MVC
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], ArgumentException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
我已经更新了包管理器控制台。
Package Manager Console Host Version 2.8.50313.31
I am using VS 2012,project I have created mvc 4
*我也尝试像这样安装,但结果相同:PM> Install-Package Ext.NET.MVC4
更新
安装变压器后,尝试安装Mvc4,我收到类似这样的错误
Install failed. Rolling back...
Install-Package : Failed to add reference to 'Ext.Net'.
At line:1 char:1
+ Install-Package Ext.NET.MVC4
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
答案 0 :(得分:0)
如果在旧软件包上安装新软件包,有时会出现此类问题。请先尝试重新安装:
Uninstall-Package Ext.NET.MVC
然后重新安装
Install-Package Ext.NET.MVC