Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, September 14, 2017 9:27 PM
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.
All replies (1)
Friday, September 15, 2017 7:35 AM | 1 vote
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
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]