Uploaded image for project: 'NPanday'
  1. NPanday
  2. NPANDAY-356

Addin 'resync references' feature fails to download latest SNAPSHOT from remote repo if older snapshot file already exists locally.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.1
    • 1.4-incubating
    • Visual Studio Add-in
    • None
    • Windows

    Description

      The VisualStudio.Addin's ReferenceManager.cs simply checks for the presence of a snapshot artifact file in the local repo, and if it's present it copies it to the project's reference folder. No attempt to check the remote snapshot state

      To fix this I did the following:

      In ReferenceManager.cs line 94, replace:
      if (!artifact.FileInfo.Exists)
      with
      if (!artifact.FileInfo.Exists || artifact.Version.EndsWith("SNAPSHOT"))

      Attachments

        1. NPANDAY-356.patch
          0.6 kB
          Paul G

        Issue Links

          Activity

            People

              jocaba Josimpson Ocaba
              paulgr Paul G
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: