When I tried to install the Package in Visual Studio 2017 using below command,
PM> Install-Package Microsoft.IdentityModel -Version 7.0.0
I got the following error
Attempting to gather dependency information for package 'Microsoft.IdentityModel.7.0.0' with respect to project 'Portal.System', targeting '.NETFramework,Version=v4.0'
Install-Package : An error occurred while retrieving package metadata for 'Microsoft.IdentityModel.7.0.0' from source 'nuget.org'.
error occurred while sending the request.
The remote name could not be resolved: 'api.nuget.org' At line:1 char:1
- Install-Package Microsoft.IdentityModel -Version 7.0.0
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException, NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
How can I fix this issue.