install-package : Dependency loop detected for package 'Microsoft.Data.Sqlite'

后端 未结 1 1545
忘掉有多难
忘掉有多难 2020-12-19 11:39

I am trying to install Microsoft.Data.Sqlite with PowerShell\'s cmdLet install-package:

$pkg = find-package -name Microsoft.Data.Sq         


        
相关标签:
1条回答
  • 2020-12-19 12:17

    First I Install the latest Nuget provider running following command in an elevated PowerShell prompt:

    Install-PackageProvider Nuget –force –verbose
    

    I resolved the trouble with another package where I met the same trouble using -SkipDependencies additional parameter :

    Install-Package libphonenumber-csharp -Destination ".\NugetPackages" -Force -Source 'https://www.nuget.org/api/v2' -ProviderName NuGet -RequiredVersion '8.10.23' -SkipDependencies -ErrorAction SilentlyContinue
    

    Then install-package works again for this package, I clearly don't understand why it suddendly stop working, but -SkipDependencies is for me the answer to dependency loop.

    0 讨论(0)
提交回复
热议问题