vs2017 - 无法安装nuget包:Microsoft.Extensions.Identity.Stores -Version 2.0.0 [英] vs2017 - cant install nuget package: 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不是其中之一。
你好Alex,
欢迎来到MSDN论坛。
参考你的描述,我试图创建asp.net core 2.0类库和web应用程序,然后使用命令或'经理Nuget包
解决方案...'来安装此扩展:Microsoft.Extensions.Identity.Stores -Version 2.0.0
它可以正常工作如下:
>>如果我使用'Manage nuget pkgs for solution'浏览nuget pkgs我可以看到很多pkgs启动了Microsoft.Extensions但是Microsoft.Extensions.Identity.Stores
不是其中一个。
请检查以下内容:
- 检查上面屏幕截图中的包源,它应该选择'nuget.org'或'全'
- 单击Package源旁边的设置图标,确保选中'nuget.org'选项,源链接为'https://api.nuget.org/v3/index.json'
如果此问题仍然存在,请在此处共享C:\ Users \ user name \ AppData \Roaming\NuGet下的文件'NuGet.Config',感谢您的合作。
祝你好运,
萨拉跨度>
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.
Hi Alex,
Welcome to the MSDN forum.
Refer to your description, I tried to create asp.net core 2.0 class library and web application, then used the command or the ‘Manager Nuget Packages for Solution…’ to install this extension: Microsoft.Extensions.Identity.Stores -Version 2.0.0 and it works fine as below:
>> 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.
Please check the following:
- Check the Package source in the above screenshot, it should select the ‘nuget.org’ or ‘All’
- Click the setting icon beside the Package source, make sure the option ‘nuget.org’ is checked and the source link is ‘https://api.nuget.org/v3/index.json’
If this issue persists, please share the file ‘NuGet.Config’ under C:\Users\user name\AppData\Roaming\NuGet in here, thank you for your cooperation.
Best regards,
Sara
这篇关于vs2017 - 无法安装nuget包:Microsoft.Extensions.Identity.Stores -Version 2.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!