Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Erro ao instalar package de comandos

Preciso de ajuda. Ao executar a linha de comando para instalar o pacote de comandos do entity, são exibidas algumas mensagens de erro.

Segue abaixo o resultado das duas tentativas

PM> Install-Package EntityFramework.Commands -Version 7.0.0-rc1-final -pre
Attempting to gather dependency information for package 'EntityFramework.Commands.7.0.0-rc1-final' with respect to project 'lojaComEntity', targeting '.NETFramework,Version=v4.5.2'
Attempting to resolve dependencies for package 'EntityFramework.Commands.7.0.0-rc1-final' with DependencyBehavior 'Lowest'
Resolving actions to install package 'EntityFramework.Commands.7.0.0-rc1-final'
Resolved actions to install package 'EntityFramework.Commands.7.0.0-rc1-final'
  GET https://api.nuget.org/packages/entityframework.relational.design.7.0.0-rc1-final.nupkg
  GET https://api.nuget.org/packages/entityframework.relational.design.7.0.0-rc1-final.nupkg
  GET https://api.nuget.org/packages/entityframework.relational.design.7.0.0-rc1-final.nupkg
Install-Package : Error downloading 'EntityFramework.Relational.Design.7.0.0-rc1-final : EntityFramework.Relational [7.0.0-rc1-final, )' from 
'https://api.nuget.org/packages/entityframework.relational.design.7.0.0-rc1-final.nupkg'.
The HTTP request to 'GET https://api.nuget.org/packages/entityframework.relational.design.7.0.0-rc1-final.nupkg' has timed out after 100000ms.
At line:1 char:1
+ Install-Package EntityFramework.Commands -Version 7.0.0-rc1-final -pr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install failed. Rolling back...
Package 'EntityFramework.Relational.Design.7.0.0-rc1-final : EntityFramework.Relational [7.0.0-rc1-final, )' does not exist in project 'lojaComEntity'
Package 'EntityFramework.Relational.Design.7.0.0-rc1-final : EntityFramework.Relational [7.0.0-rc1-final, )' does not exist in folder 'c:\users\luiso\documents\visual studio 2015\Projects\lojaComEntity\packages'
Install-Package : Error downloading 'EntityFramework.Relational.Design.7.0.0-rc1-final : EntityFramework.Relational [7.0.0-rc1-final, )' from 
'https://api.nuget.org/packages/entityframework.relational.design.7.0.0-rc1-final.nupkg'.
At line:1 char:1
+ Install-Package EntityFramework.Commands -Version 7.0.0-rc1-final -pr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand


-----------------------------------------------


PM> Install-Package EntityFramework.Commands -pre
Install-Package : An error occurred while retrieving package metadata for 'EntityFramework.Commands' from source 'nuget.org'.
At line:1 char:1
+ Install-Package EntityFramework.Commands -pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
3 respostas

Olá, Luis

Experimente remover o pacote do Nuget antes de tentar instalar novamente:

PM> Uninstall-Package EntityFramework.Commands

Boa tarde Marcelo. Tentei novamente com a linha de desinstalação, mas não deu certo.

PM> Uninstall-Package EntityFramework.Commands Uninstall-Package : Package 'EntityFramework.Commands' to be uninstalled could not be found in project 'lojaComEntity' At line:1 char:1 + Uninstall-Package EntityFramework.Commands + ~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Uninstall-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UninstallPackageCommand

PM> Install-Package EntityFramework.Commands -pre Install-Package : An error occurred while retrieving package metadata for 'EntityFramework.Commands' from source 'nuget.org'. At line:1 char:1 + Install-Package EntityFramework.Commands -pre + ~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

solução!

Consegui resolver o problema atualizando o NuGet.