Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael Nielsen 155 posts 812 karma points
    Jan 07, 2022 @ 10:27
    Michael Nielsen
    0

    Unable to resolve dependency when installing Vendr Deploy

    I'm attempting to install Vendr.Deploy 2.0.1 on a project, but it fails with the following message:

    Attempting to gather dependency information for package 'Vendr.Deploy.2.0.1', targeting '.NETFramework,Version=v4.7.2'
    Gathering dependency information took 9,43 sec
    Attempting to resolve dependencies for package 'Vendr.Deploy.2.0.1' with DependencyBehavior 'Lowest'
    Install-Package : Unable to resolve dependency 'Lucene.Net.QueryParser'. Source(s) used: 'nuget.org'.
    At line:1 char:1
    + Install-Package Vendr.Deploy -Version 2.0.1
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    

    I found this that might seem related https://our.umbraco.com/forum/using-umbraco-and-getting-started/107417-unable-to-resolve-dependency-lucenenetqueryparser-while-updating-from-8104-umbraco-813-and-higher

    but both packages mentioned, are below the mentioned versions.

    Umbraco 8.17.0 Vendr 2.0.4

  • Michael Nielsen 155 posts 812 karma points
    Jan 07, 2022 @ 10:33
    Michael Nielsen
    0

    Looking at dependencies for the package https://www.nuget.org/packages/Vendr.Deploy/

    Under .NETFramework 4.7.2, it seems that the link for UmbracoDeploy is incorrect. I'm guessing it should point to UmbracoDeploy.Core https://www.nuget.org/packages/UmbracoDeploy.Core/

    But I don't know if that is the what's causing the issue?

  • Michael Nielsen 155 posts 812 karma points
    Jan 07, 2022 @ 10:42
    Michael Nielsen
    0

    I solved it by making sure I already had the needed dependencies (which you do if you're running Umbraco on Cloud and have Venr installed), and just ignored dependencies when installing.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jan 07, 2022 @ 11:15
    Matt Brailsford
    100

    I believe someone else had this issue too, but it's not our fault. I believe it's because Umbraco has a dependency on Examine, which has a beta dependency on Lucene.Net.QueryParser and so I think you have to allow installing pre-releases when installing.

    I don't know why a released package has a dependency on a beta package but for some reason it does and I think it break things.

    It would need bringing up with HQ/Shannon though.

    Hope this helps

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft