Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-8436

Nuget restore from virtual repository returns wrong version

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0
    • Component/s: NuGet
    • Labels:
      None

      Description

      Using the nuget.exe, when restoring dependencies from a virtual repo, artifactory may return the wrong version for the requested dependency.

      Steps -
      1.download nuget.exe 3.2
      2. download the attached project.json
      3. command for mac using the mono framework -
      mono --runtime=v4.0.30319 /path/to/nuget.exe restore project.json -source http://localhost:8081/artifactory/api/nuget/nuget-virtual -verbosity detailed
      3. command for windows -
      nuget restore project.json -source http://localhost:8081/artifactory/api/nuget/nuget-virtual -verbosity detailed

      You'll see that it resolves version 2.1.0 of xunit instead of the specified version (which is 2.0.0). One important note is that the virtual repo can aggregate a remote repo proxying the nuget gallery, and when you restore from that remote directly repo you'll get the correct version, but when using the virtual repo, you'll get the wrong version.

        Attachments

          Activity

            People

            • Assignee:
              shayy Shay Yaakov (Inactive)
              Reporter:
              uriahl Uriah Levy
              Assigned QA:
              Dima Nevelev (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: