jac*_*ace 4 c# visual-studio nuget
我想安装Microsoft.EntityFrameworkCore及其组件。我正在将Visual Studio 2015与NuGet Client版本先前为3.5.0一起使用,现在我已按照错误报告的指示从https://www.nuget.org/downloads下载了3.6.0-rtm-2511(这是最新的)。我不知道为什么仍然需要3.6.0或更高版本的问题仍然存在。
如何以其他方式更新我的NuGet软件包管理器?
我无法从“工具”>“扩展和更新”>“更新”>“ Visual Studio库”中的“更新”中找到Visual Studio的Nuget软件包管理器。
我只能在“工具”>“扩展和更新”>“已安装”中看到它,但是没有更新,但是我注意到选中了“自动更新此扩展”。
PM控制台的结果
PM> install-package microsoft.entityframeworkcore.sqlserver
GET https://api.nuget.org/v3/registration3-gz-semver2/microsoft.entityframeworkcore.sqlserver/index.json
OK https://api.nuget.org/v3/registration3-gz-semver2/microsoft.entityframeworkcore.sqlserver/index.json 329ms
Retrieving package 'Microsoft.EntityFrameworkCore.SqlServer 2.1.1' from 'nuget.org'.
Install failed. Rolling back...
Uninstalling NuGet package Microsoft.EntityFrameworkCore.SqlServer.2.1.1.
Executing nuget actions took 162.34 ms
install-package : The 'Microsoft.EntityFrameworkCore.SqlServer 2.1.1' package requires NuGet client version '3.6.0' or above, but the current NuGet
version is '3.6.0-rtm-2511'. To upgrade NuGet, please go to http://docs.nuget.org/consume/installing-nuget
At line:1 char:1
+ install-package microsoft.entityframeworkcore.sqlserver
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Time Elapsed: 00:00:33.0573364
Run Code Online (Sandbox Code Playgroud)
该软件包需要NuGet客户端版本“ 3.6.0”或更高版本
这是有关nuget的已知问题。NuGet团队针对VS2017随附的Nuget 4修复了该问题,但2015年的用户却落后了。
门票:https : //github.com/NuGet/Home/issues/6403
此外,NuGet团队将考虑解决问题。目前,尚无计划发布适用于VS 2015的NuGet的新版本。
因此,如果要使用该软件包Microsoft.EntityFrameworkCore.SqlServer 2.1.1,则必须将Visual Studio 2015更新为Visual Studio2017。或者,如果可以接受较低版本的软件包,则可以使用Microsoft.EntityFrameworkCore.SqlServer 2.0.3版本。
希望这可以帮助。
| 归档时间: |
|
| 查看次数: |
3468 次 |
| 最近记录: |