Install-Package EntityFramework -Source G:\Resources\Nuget-Packages\
which was based on the following syntax
Install-Package <PackageName> -Source <PackagePath>
The issue was solved when I unchecked the Package Sources.
Error Message.
Attempting to gather dependency information for package 'EntityFramework.6.4.4' with respect to project 'WebApps', targeting '.NETFramework,Version=v4.5'
Install-Package : Exception 'System.AggregateException' thrown when trying to add source
'https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet/'. Please verify all your online
package sources are available.
One or more errors occurred.
Unable to load the service index for source
https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet/.
An error occurred while sending the request.
The remote name could not be resolved: 'www.nuget.org'
At line:1 char:1
+ Install-Package EntityFramework -Source G:\Resources\Nuget-Packages\
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdle
ts.InstallPackageCommand
Time Elapsed: 00:00:00.5953499
No comments:
Post a Comment