本文介绍了vs2017 - 无法安装nuget包:Microsoft.Extensions.Identity.Stores -Version 2.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


尝试按照编译错误将以下nuget pkg安装到我的asp.net core 2.0库,告诉我安装它,但只是得到后面的错误。我从nuget.org复制了以下行:


Install-Package Microsoft.Extensions.Identity.Stores -Version 2.0.0


Install-Package :无法找到"Microsoft.Extensions.Identity.Stores"软件包的版本"2.0.0"。在行:1 char:1 + Install-Package Microsoft.Extensions.Identity.Stores -Version 2.0.0 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo:NotSpecified: (:) [Install-Package],Exception + FullyQualifiedErrorId:NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand


如果我使用'Manage nuget pkgs for solution'浏览nuget pkgs我可以看到很多启动Microsoft.Extensions的pkgs,但Microsoft.Extensions.Identity.Stores不是其中之一。

解决方案

Trying to install the following nuget pkg to my asp.net core 2.0 library per a compile err that tells me to install it, but just get the error that follows. I copied the following line from nuget.org:

Install-Package Microsoft.Extensions.Identity.Stores -Version 2.0.0

Install-Package : Unable to find version '2.0.0' of package 'Microsoft.Extensions.Identity.Stores'. At line:1 char:1 + Install-Package Microsoft.Extensions.Identity.Stores -Version 2.0.0 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

If I browse nuget pkgs using 'Manage nuget pkgs for solution' I can see lots of pkgs that start w Microsoft.Extensions but Microsoft.Extensions.Identity.Stores is not one of them.

解决方案


这篇关于vs2017 - 无法安装nuget包:Microsoft.Extensions.Identity.Stores -Version 2.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-03 21:12
查看更多