无法找到“Microsoft.AspNetCore.Identity”软件包的版本“2.0.0” [英] Unable to find version '2.0.0' of package 'Microsoft.AspNetCore.Identity'
问题描述
我在Windows 7 x64上运行VS2017 v15.3。 我似乎在安装nuget core 2.0 pkgs时遇到了问题。 我试图在不同的应用程序中安装各种asp.net core 2.0 pkgs并且我一直得到以下错误:
I'm running VS2017 v15.3 on Windows 7 x64. I seem to have a problem installing nuget core 2.0 pkgs. I've tried to install various asp.net core 2.0 pkgs in different applications and I keep getting the following err:
Install-Package:无法找到版本'2.0.0'的软件包'Microsoft.AspNetCore.Identity'。
在行:1 char:1
+ Install-Package Microsoft.AspNetCore。身份-Version 2.0.0
$
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo :未指定:(:) [Install-Package],例外情况
+ FullyQualifiedErrorId:NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.Inst
allPackageCommand
Install-Package : Unable to find version '2.0.0' of package 'Microsoft.AspNetCore.Identity'.
At line:1 char:1
+ Install-Package Microsoft.AspNetCore.Identity -Version 2.0.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.Inst
allPackageCommand
你可以用几乎任何aspnet核心pkg替换Microsoft.AspNetCcore.Identity并获得相同的错误。
You can substitute Microsoft.AspNetCcore.Identity w virtually any aspnet core pkg and get the same error.
如果我浏览并搜索pkg,则仅出现v1.1.2。 关于框说我正在运行VS2017 v15.3.3并且我最近使用VS安装进行了修复。
If I browse and search for the pkg only v1.1.2 comes up. The about box says I'm running VS2017 v15.3.3 and I recent ran a repair using the VS installation.
我目前正在开发的项目是AspNetCore 2.0库,但是我无论项目如何,似乎都会得到相同的错误。
The project I'm currently working on is an AspNetCore 2.0 library, but I seem to get the same error regardless of the project.
推荐答案
您好YahooAlex,
Hi YahooAlex,
感谢您在此处发帖。
>>> 无法找到版本'2.0.0'包"Microsoft.AspNetCore.Identity"
>>>Unable to find version '2.0.0' of package 'Microsoft.AspNetCore.Identity'
您使用的nuget包源是什么?是默认来源nuget.org" https://api.nuget.org/v3/index.json"?检查来自:工具 - >选项 - > Nuget数据包管理器 - >包源。
What`s the nuget package source you are using? Is the default source nuget.org "https://api.nuget.org/v3/index.json"? Check it from: Tools -> Option->Nuget Packet Manager ->Package source.
此外,d oes此问题发生在新的创建公共项目(等库)?
Besides, does this issue happen on a new create common project(etc. library)?
作为一种解决方法,我建议你可以从
nuget.org ,然后设置您自己的本地Feed,从本地Feed添加这些包,检查它是否适合您。
As a workaround, I suggest that you can download those package from nuget.org, then set your own local feed, add those package from local feed, check if it works for you.
https://docs.microsoft.com/en-us/nuget/hosting- package / local-feeds
希望这会有所帮助。
这篇关于无法找到“Microsoft.AspNetCore.Identity”软件包的版本“2.0.0”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!